Comment 7 for bug 1533349

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 1533349] Re: crashes sometimes do not get retraced

Brian Murray [2016-02-17 23:37 -0000]:
> Given that 'info f' for a frame returns a pc, is there a reason not to
> use that?

Two reasons:

 - At least in the crash I looked at, the PC was exactly the same as
   in the previous frame. I suppose due to -fomit-frame-pointer gdb
   could not figure out the new PC and thus didn't write it into the
   bt frame. So if we'd do that, we would merely duplicate the
   previous address.

 - We'd need to add this logic to add_gdb_info(), as only at that time
   we have gdb actually running and could get PC for each frame. Not a
   big deal, but I wonder if it's actually worth it.