This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Add debugging information to GAS?
- From: Nick Clifton <nickc at redhat dot com>
- To: martin at utstar dot com
- Cc: binutils at sources dot redhat dot com
- Date: 30 Sep 2002 12:02:27 +0100
- Subject: Re: Add debugging information to GAS?
- References: <200209280202.g8S22lY00506@tiger.utstar.com.cn>
Hi Martin,
> I use ARM and I want to debug my assemble programs with gdb. But I
> don't know how to add debugging information into .elf file. if I use
> "arm-elf-gcc -g -o hello.s",the option "-g" does noting. Who can
> give me help? Thanks in advance.
Try adding -Wa,--gdwarf2
Cheers
Nick