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
> 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.
That makes sense.
I put a "patch champion" hat on and had a look at the proposed patch.
If I understand correctly, it looks like the code is detecting stack
alignment code, and if it does, then it considers that the parameters
will be relative to the arguments region address.
I wonder how this all works if GCC < 4.1 is being used.
--
Joel