* Q: -g and debugging symbol
@ 2009-12-05 17:49 muzehyun_
0 siblings, 0 replies; only message in thread
From: muzehyun_ @ 2009-12-05 17:49 UTC (permalink / raw)
To: gcc-help
1.
compile without debugging option
gcc foo.c
2.
compile with debugging option
gcc -g foo.c
then strip out debugging symbol
strip foo.out
Q
Why those result binaries are different?
second one is much smaller in size
I can set brakepoint with first one with gdb (didn't compiled with debugging
option), but not second one.
I guess some dubugging information is included even without debugging
option.
Is there any compile option that makes first and second one same?
Thank you
--
View this message in context: http://old.nabble.com/Q%3A--g-and-debugging-symbol-tp26656155p26656155.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-05 14:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-05 17:49 Q: -g and debugging symbol muzehyun_
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).