summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2015-01-12 20:27:09 +0000
committerkettenis <kettenis@openbsd.org>2015-01-12 20:27:09 +0000
commit9ba83a3fda56db0ae3f87bee6f5b90791244e326 (patch)
tree02b95316f5474becc42b7f1fed37550a01282f25 /lib/libc
parentunbreak parsing of pubkey comments; with gerhard; ok djm/deraadt (diff)
downloadwireguard-openbsd-9ba83a3fda56db0ae3f87bee6f5b90791244e326.tar.xz
wireguard-openbsd-9ba83a3fda56db0ae3f87bee6f5b90791244e326.zip
Make putting a breakpoint on the first instruction of a program work.
Previously a breakpoint at the first instruction would force us to single-step. Depending on the single-step implementation this would make us step over the breakpoint and continue in many cases. Fix this by passing the address of the current instruction pointer which will skip the code that checks if we need to step over a breakpoint. A similar fix has been made upstream many moons ago. Fixes debugging static PIE on sparc64 and probably others that use some sort of software single-stepping.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions