Add debugging information to GAS?

Nick Clifton nickc@redhat.com
Mon Sep 30 07:42:00 GMT 2002


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



More information about the Binutils mailing list