This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [i386/stabs] Arguments of main on gcc >= 4.1
On Mon, Dec 17, 2007 at 08:11:59AM +0400, Joel Brobecker wrote:
> > > Looking at your example above, what would work is if GCC was using
> > > N_LSYM (128) symbols instead of N_PSYM symbols (160).
> >
> > If it did that, they wouldn't be treated as arguments any more, just
> > as local variables. I think.
>
> Duh, of course! Not sure what's best in this case - I would tend to
> say it's a GCC bug, but perhaps others disagree.
I think that the major difference between a GDB bug and a GCC bug is
whether we have to get GCC fixed - either way, since it's been in
several releases, handling it in GDB is at least worth considering.
--
Daniel Jacobowitz
CodeSourcery