Debug info - command

Erik Christiansen erik@dd.nec.com.au
Tue Jul 1 07:53:00 GMT 2003


On Tue, Jul 01, 2003 at 12:44:53PM +0530, Sathish_Dilip@chennai.tcs.co.in wrote:
> 
> Hi All,
>      Is there any command to find out whether my executables( say a.out)
> have the debug info in them or not.  

   Yep. Try objdump. The -D option provides the shotgun approach.
   If you've done a gcc -g, then you'll see interspersed 'C' source
   lines.

   It is remiss of the gcc manpage not to mention this command under
   "SEE ALSO", IMHO. (But objdump is part of binutils, so it's perhaps
   too OT to warrant a mention. ;-)

Regards,
Erik



More information about the Gcc-help mailing list