Re: gcc -g options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23 April 2015 at 15:35, rac8006 <rac8006@xxxxxxx> wrote:
> I'm using gcc 4.7.2.  I'm trying to compile a program and get debug symbols.
> It seem
> no matter what I do I only get the main functions in the output file.  I've
> tried gcc4.6
> gcc 4.7.2 both using arm7 and x86 versions.
> If I compile with -g or without -g the output files produce the exact output
> from nm.

What are you expecting to see with nm? How are you running nm?

You won't see DWARF debug info by running nm.

Have you compared the size of the output files with and without -g?

readelf -w will dump debug info.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux