This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: objdump: interpretation of stabs debuginformation
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Roul Oldenburger <oldenburger dot roul at rheinmetall-de dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 02 Oct 2003 06:13:32 -0700
- Subject: Re: objdump: interpretation of stabs debuginformation
- References: <3F7C03B0.50301@rheinmetall-de.com>
Roul Oldenburger <oldenburger.roul@rheinmetall-de.com> writes:
> I do 'objdump --stabs my_executable' and try to parse the output.
> The aim is to reconstruct type descriptions of structures which might
> be nested in an arbitrary depth ... down to the basictypes of the
> final components.
You may want to look at objdump --debugging.
> In fact the type is duration, but my problem is to distinguish between
> the different possibilities ... so looking for the type number only is
> not enough.
In an executable, the stabs for different .o files are simply appended
(with some elimination of information duplicated in .h files). A
particular type number is only valid within a given file. Each file's
entries start with one or more consecutive N_SO strings.
> Where can I find the stabs format specification which is used for objdump?
In the file
gdb/doc/stabs.texinfo
or online at
http://sources.redhat.com/gdb/download/onlinedocs/stabs.html
Ian