This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Debug info - command
- From: Muthukumar Ratty <muthu at iqmail dot net>
- To: Erik Christiansen <erik at dd dot nec dot com dot au>
- Cc: <Sathish_Dilip at chennai dot tcs dot co dot in>, <gcc-help at gcc dot gnu dot org>
- Date: Tue, 1 Jul 2003 10:24:24 -0700 (PDT)
- Subject: Re: Debug info - command
> 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
You mean -S? Also you can use readelf -w.
> 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
>