This is the mail archive of the
mailing list for the GDB project.
Re: Command to break before exiting stack frame?
- From: Tom Tromey <tom at tromey dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>
- Cc: Andreas Schwab <schwab at linux-m68k dot org>, Justin Paston-Cooper <paston dot cooper at gmail dot com>, gdb at sourceware dot org
- Date: Tue, 19 Mar 2019 09:35:02 -0600
- Subject: Re: Command to break before exiting stack frame?
- References: <CAEndGgToidTsVOhwvV=9RFf=nYWwK+3_qWheYJ8JtoNez3Pq8w@mail.gmail.com> <email@example.com> <firstname.lastname@example.org>
>>>>> "Simon" == Simon Marchi <email@example.com> 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
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.