Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-10] src/sys/arch/vax



Module Name:    src
Committed By:   martin
Date:           Fri Apr  4 16:19:39 UTC 2025

Modified Files:
        src/sys/arch/vax/include [netbsd-10]: db_machdep.h
        src/sys/arch/vax/vax [netbsd-10]: db_disasm.c db_machdep.c trap.c

Log Message:
Pull up following revision(s) (requested by hans in ticket #1085):

        sys/arch/vax/vax/db_disasm.c: revision 1.26
        sys/arch/vax/vax/db_machdep.c: revision 1.61
        sys/arch/vax/vax/trap.c: revision 1.140
        sys/arch/vax/include/db_machdep.h: revision 1.21

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.20.34.1 src/sys/arch/vax/include/db_machdep.h
cvs rdiff -u -r1.24.10.1 -r1.24.10.2 src/sys/arch/vax/vax/db_disasm.c
cvs rdiff -u -r1.60 -r1.60.2.1 src/sys/arch/vax/vax/db_machdep.c
cvs rdiff -u -r1.137 -r1.137.2.1 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