summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2014-10-09 08:21:48 +0000
committermatthew <matthew@openbsd.org>2014-10-09 08:21:48 +0000
commit4d814044acb43c292030e1bc8453d620ed54beea (patch)
tree1caa633f941d32943dd664b4969d4debb7c244de /lib/libc
parenttweak previous; (diff)
downloadwireguard-openbsd-4d814044acb43c292030e1bc8453d620ed54beea.tar.xz
wireguard-openbsd-4d814044acb43c292030e1bc8453d620ed54beea.zip
ddb: add support for DWARF line number decoding
This allows ddb's "trace" command to include file and line numbers: ddb{0}> trace Debugger() at Debugger+0x9 [../../../../arch/amd64/amd64/db_interface.c:405] ddb_sysctl() at ddb_sysctl+0x1b4 [../../../../ddb/db_usrreq.c:104] sys___sysctl() at sys___sysctl+0x216 [../../../../kern/kern_sysctl.c:229] syscall() at syscall+0x297 [../../../../sys/syscall_mi.h:84] --- syscall (number 202) --- end of kernel end trace frame: 0x7f7ffffcf1d7, count: -4 acpi_pdirpa+0x4117aa: For this to work, it requires using a new version of boot(8), and booting a kernel with the .debug_line section present (e.g., building with ``makeoptions DEBUG="-g"'' and then booting the bsd.gdb kernel instead of the stripped bsd kernel). Still a WIP, but no failure reports yet. Committing so further development and testing can happen in tree. prodding deraadt, guenther, mlarkin ok mpi
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions