linux-mips
[Top] [All Lists]

Re: Debugging symbols from gcc

To: Gerald Champagne <gerald.champagne@esstech.com>
Subject: Re: Debugging symbols from gcc
From: "H . J . Lu" <hjl@lucon.org>
Date: Thu, 4 Oct 2001 12:41:47 -0700
Cc: "linux-mips@oss.sgi.com" <linux-mips@oss.sgi.com>
In-reply-to: <3BBCBB6B.6080809@esstech.com>; from gerald.champagne@esstech.com on Thu, Oct 04, 2001 at 02:41:31PM -0500
References: <3BBCBB6B.6080809@esstech.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Thu, Oct 04, 2001 at 02:41:31PM -0500, Gerald Champagne wrote:
> I'm trying to use a Wind River VisionProbe debugger with the
> Linux kernel, but I can't get the compiler to generate the symbols
> in the proper format.  The debugger works with an old compiler
> that places the symbols in sections called ".stab" and ".stabstr".
> It doesn't work with the newer compiler that places the symbols
> in a section called ".mdebug" (which I think is specific to sgi).
> 
> The version that creates .stab/.stabstr sections is:
> $ /usr/local/sde4/bin/gcc --version egcs-2.90.23 980102 (egcs-1.0.1 release)
> 
> The version that creates .mdebug sections is:
> $ /usr/bin/mips-linux-gcc --version egcs-2.91.66
> 
> Is there a way to specify the output format of the debug symbols?  I've
> seen documentation that references a -gstabs option, but that doesn't
> seem to work.  Should I be using a different version of the compiler?
> I'm just using the rpm's that were on the sgi site.
> 

I have fixed it in the current binutils and gcc. Those in RedHat 7.1
for mips should be ok. At least, I can use gdb 5.1 on the Linux
kernel.


H.J.

<Prev in Thread] Current Thread [Next in Thread>