This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Debug info - command


Hello,

You might also want to give the `file` command a try.
It will tell you the file type and, especially is it is a binary, whether it is stripped or not


Hopes that helps,

Vincent

erik@dd.nec.com.au wrote:

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]