This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]