summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorchs <chs@NetBSD.org>2021-12-13 01:25:29 +0000
committerchs <chs@NetBSD.org>2021-12-13 01:25:29 +0000
commit0c672fb96e1264aba1c0842764ec6e9aaa9baa8a (patch)
tree44634a17584a15af022aa2983337c9fba5302bd7 /sys/lib
parent50758afa1300afec98c70606aa7db9ad9b8ab87b (diff)
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.
Diffstat (limited to 'sys/lib')
0 files changed, 0 insertions, 0 deletions