On Fri, Mar 31, 2006 at 03:54:28PM +0200, Fabian Cenedese
wrote:
> At 10:20 30.03.2006 -0500, Daniel Jacobowitz wrote:
> >On Thu, Mar 30, 2006 at 04:33:11PM +0200, Fabian
Cenedese wrote:
> >> Well, as the currently used compiler 2.95.3 is
even older and I supposed
> >> that the stabs format should be compatible I
didn't especially try the
> >> newest versions but I may now.
> >
> >The C++ front end has gotten much more
sophisticated. Namespace
> >debugging works in DWARF-2, but fails badly in
stabs.
> >
> >> The -g is given to gcc, I don't know if that
gets passed on to as. But so
> >> was the setup with the older compiler as well,
where it worked.
> >
> >GCC 2.95.x predates assembler -g support; GCC 3.4.x
doesn't.
>
> Can I somehow prevent gcc from relaying it to as?
Something like
> -Wa,(no, don't do -g)? I didn't find a matching
parameter on
>
> http://sourceware.org/binutils/docs-2.16/as/In
voking.html#Invoking
You're compiling in two steps already; how about not
passing -g the
second time?
> But then again it isn't mentioned either that as would
take -g.
It's translated to --gdwarf-2 or --gstabs.
--
Daniel Jacobowitz
CodeSourcery
|