This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] Allow function prologues to have multiple repeating lines
- From: Tom Tromey <tom at tromey dot com>
- To: Alan Hayward <Alan dot Hayward at arm dot com>
- Cc: Simon Marchi <simark at simark dot ca>, "gdb-patches\@sourceware.org" <gdb-patches at sourceware dot org>, nd <nd at arm dot com>
- Date: Fri, 30 Nov 2018 13:10:12 -0700
- Subject: Re: [PATCH 1/2] Allow function prologues to have multiple repeating lines
- References: <20181024090427.22721-1-alan.hayward@arm.com> <fba2d972-4d69-296f-1a9c-d15ff45bb7fb@simark.ca> <0BDE5F6A-06E9-4246-A1C6-1F8E0F22C983@arm.com>
>>>>> "Alan" == Alan Hayward <Alan.Hayward@arm.com> writes:
[...]
Alan> So, I don’t think it’s possible to tell apart the first example with the final
Alan> example.
What does the DWARF look like?
Ideally I think gdb would just rely on the DWARF to mark the end of the
prologue. However, of course that can't always be done -- but I would
much rather have a blacklist of bad compilers than the current approach
of a whitelist of good ones; and I'm wondering if that is achievable at
all. Maybe doing this well would mean exposing a bit more info from the
DWARF to gdb's line table -- but that seems totally fine.
Maybe I'm really not understanding the problem, feel free to say so :)
But I'd like to understand better; my own forays into this area haven't
turned out so well.
thanks,
Tom