[rfc] Teach i386 prologue reader about _alloca and __main
Daniel Jacobowitz
drow@false.org
Sun Oct 14 15:55:00 GMT 2007
On Sat, Oct 13, 2007 at 10:12:25PM +0100, Pedro Alves wrote:
> The __main call is not i386 specific. Eg. arm-wince has the same problem.
Yes, but it's only set in i386-specific code and only checked in
i386-specific code; so if it's just a variable in the tdep struct,
then ARM can have a similar one.
If you want to handle it from common code, of course, that's a
different story.
> I'm mostly asking for advice on:
>
> - Is the gdb-only solution preferable? That is, the line info
> currently marks the prologue ending *before* the __main call.
> Last year's version changed that, this one doesn't. Does anyone
> see any problem with that?
I have no strong preference either way.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list