Command to break before exiting stack frame?

Tom Tromey tom@tromey.com
Tue Mar 19 15:35:00 GMT 2019


>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:

Simon> I suppose that the list of all function exit points (regardless of
Simon> whether it is a jump or real return) is an information that the
Simon> compiler could theoretically produce and encode in the DWARF
Simon> information?

Yes, the line number program can include epilogue markers.
I don't believe gcc emits these, though.

This feature would be a good one to have in gdb.
Fixing it in the compiler is probably the best way to do it, though I
don't know whether it's the simplest way.

Tom



More information about the Gdb mailing list