This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Stepping over longjmp presumably broken for glibc
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sourceware dot org
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 22 Dec 2005 16:17:34 -0500
- Subject: Stepping over longjmp presumably broken for glibc
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