Module Name:    src
Committed By:   chs
Date:           Mon Dec 13 01:25:29 UTC 2021

Modified Files:
        src/sys/arch/amd64/amd64: db_machdep.c
        src/sys/arch/i386/i386: db_machdep.c
        src/sys/ddb: db_sym.c

Log Message:
ddb: fix function names of "noreturn" functions in stack traces.

when looking up function names for stack traces (where the addresses are the
return addresses of function calls), if the address is the first instruction
in the function, assume that the function being called is marked "noreturn"
and that the function containing the call is actually the function immediately
before the address that we looked up.  to find the correct function name,
do the lookup again with (address - 1) and then add one to the offset within
the function that we find.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amd64/amd64/db_machdep.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/i386/i386/db_machdep.c
cvs rdiff -u -r1.67 -r1.68 src/sys/ddb/db_sym.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to