CVSROOT: /cvs Module name: src Changes by: kette...@cvs.openbsd.org 2015/01/12 13:27:09
Modified files: gnu/usr.bin/binutils/gdb: inf-ptrace.c Log message: 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.