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.
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 frame-pointer gdb
in the previous frame. I suppose due to -fomit-
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.