Re: How to tell whether .o was compiled with -g option

[email protected] (Alan Curry)
Newsgroups gmane.comp.gnu.utils
Organization The World : www.TheWorld.com : Since 1989
Message-ID <[email protected]>
In article <[email protected]>,
>
>You can look at `objdump -h' output for presence of debug sections.

Or ask objdump to actually show you the debug info. Depending on the format,
at least one of these should work:

  -g, --debugging          Display debug information in object file
  -e, --debugging-tags     Display debug information using ctags style
  -G, --stabs              Display (in raw form) any STABS info in the file
  -W, --dwarf              Display DWARF info in the file

-- 
Alan Curry
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.