This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: DWARF debug information with GAS
- From: "Aaron W. LaFramboise" <aaron98wiridge9 at aaronwl dot com>
- To: sonal sharma <sonalsharma at acmet dot com>
- Cc: "'Nick Clifton'" <nickc at redhat dot com>, binutils at sources dot redhat dot com, asm19a2 at acmet dot com, acmet at vsnl dot net
- Date: Tue, 19 Oct 2004 02:43:35 -0500
- Subject: Re: DWARF debug information with GAS
- References: <001301c4b5ac$d19a01b0$5300a8c0@SONAL>
sonal sharma wrote:
> I had built the source code for binutils version 2.15 on Linux. I
> assembled an assembly source file with 'as' version 2.15.91 with the
> '-gdwarf-2' option. Then I read the output file generated by 'as' using
> 'readelf' utility of GNU. No dwarf debug information was present in the
> output file.
I don't have access to a recent enough binutils on Linux that supports
-gdwarf-2, so I can't test myself. I think someone else will have to
comment on why you're seeing this behavior.
> I wanted to know if 'as' (GNU assembler) generates dwarf debug
> information when a hand coded assembly file is assembled with 'as' with
> '-gdwarf-2' option.
Yes, it is supposed to. I am not sure what version of binutils is
required for this, but at the very least, it should work on mainline.
Since you initially asked about MinGW, the next MinGW.org binutils
release (or if you build binutils from CVS on MinGW) will support
--gdwarf-2.
Aaron W. LaFramboise