public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* how do I know if an object is with or without debug -newbie
@ 2004-11-10 15:01 John Que
  2004-11-10 15:48 ` Sriharsha Vedurmudi
  0 siblings, 1 reply; 2+ messages in thread
From: John Que @ 2004-11-10 15:01 UTC (permalink / raw)
  To: gcc-help

Hello,
what is the best and shortest way to find if an object file
was build with debug or not ? (I mean whether it was build with or without 
-g ?)

regards,
John

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how do I know if an object is with or without debug -newbie
  2004-11-10 15:01 how do I know if an object is with or without debug -newbie John Que
@ 2004-11-10 15:48 ` Sriharsha Vedurmudi
  0 siblings, 0 replies; 2+ messages in thread
From: Sriharsha Vedurmudi @ 2004-11-10 15:48 UTC (permalink / raw)
  To: John Que, gcc-help

I guess its using OBJDUMP:

objdump --headers <objectfile>

In the output, see if the debug sections have size greater than 2^0.

-Sriharsha.

John Que wrote:
> Hello,
> what is the best and shortest way to find if an object file
> was build with debug or not ? (I mean whether it was build with or 
> without -g ?)
> 
> regards,
> John
> 
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search! 
> http://search.msn.com/
> 

-- 
  *****************************
  * Sriharsha Vedurmudi			
  * Software Engineer		
  *
  * Redpine Signals Inc.	
  * Gate #395, Plot 87,88			
  * Sagar Society, Road #2,
  * Banjara Hills,		
  * Hyderabad - 500 034			
  * www.redpinesignals.com	
  *							
  * +91-40-23559911  (Office)
  * +91-9849133133   (Mobile)
  *****************************

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-10 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-10 15:01 how do I know if an object is with or without debug -newbie John Que
2004-11-10 15:48 ` Sriharsha Vedurmudi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).