> > I don't think it is because the instrumentation only adds calls, and > calls don't get annotated in DWARF. The only issue I could think of > if is something patches in push instructions through the nops, > but there is really nothing the compiler could do about that. > > I tested gdb and it can backtrace through the return instrumentation. > > Breakpoint 1, 0x0000000000401182 in __return__ () > (gdb) bt > #0 0x0000000000401182 in __return__ () > #1 0x00000000004011a3 in f2 () > #2 0x00000000004011b7 in main () > Backtrace stopped: previous frame inner to this frame (corrupt stack?)
:) Not most user friendly message though. The patch is OK. Honza > > -Andi