Stepping over longjmp presumably broken for glibc
Daniel Jacobowitz
drow@false.org
Thu Dec 22 21:17:00 GMT 2005
GDB sets breakpoints at longjmp, and when it hits one, it fetches the
address of the jmp_buf, reads the PC from it, sets a breakpoint at that PC,
and continues. This needs to be redone, probably to single-step. Current
versions of glibc for many platforms xor the saved PC with a randomized
canary, so setting a breakpoint at that "address" isn't going to work
especially well.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Libc-alpha
mailing list