This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] Teach i386 prologue reader about _alloca and __main


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]