Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/arch/vax
Module Name: src
Committed By: hans
Date: Sat Mar 22 10:37:19 UTC 2025
Modified Files:
src/sys/arch/vax/include: db_machdep.h
src/sys/arch/vax/vax: db_disasm.c db_machdep.c trap.c
Log Message:
vax/ddb(4): clean up machine dependent code and improve usability
First, let's garbage collect some dead code wrapped in #if 0/#endif
that were introduced in back in 1999 in revision 1.17 of db_machdep.c,
when VAX stack tracing was last reworked. There's also an unused
argument "stackbase" in db_dump_stack() that can go away.
Next, fix stack tracing on panic. The panicstr has already been printed
by the time we get here from db_panic(), and at least on !MULTIPROCESSOR
the panic stack trace caused a recursive panic immediately. While here,
add tracing by lwp and proc addresses. The code for tracing a process or
lwp should live in its own function, and we can rearrange the logic in
db_stack_trace_print() to be a bit clearer.
While here, add some basic memory access checks so we don't suffer
from recursive panics all the time. For the same reason, get the
process with db_find_proc() rather than proc_find_raw().
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/vax/include/db_machdep.h
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/vax/vax/db_disasm.c
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/vax/vax/db_machdep.c
cvs rdiff -u -r1.139 -r1.140 src/sys/arch/vax/vax/trap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index