Q: -g and debugging symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux