This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Debug info, was: Re: AW: It's compiled and works
- To: Rotter Klaus <Klaus.Rotter@erl9.siemens.de>
- Subject: Debug info, was: Re: AW: It's compiled and works
- From: Paul Sokolovsky <paul-ml@is.lg.ua>
- Date: Tue, 24 Aug 1999 18:50:00 +0300
- CC: cygwin@sourceware.cygnus.com
- References: <1B6FF887D79FD2119FDB00805FBED48B01C129B2@erlm511a.erl9.siemens.de>
- Reply-To: Paul Sokolovsky <paul-ml@is.lg.ua>
Hello Rotter,
Rotter Klaus <Klaus.Rotter@erl9.siemens.de> wrote:
RK> -rwxr-xr-x 1 15362 everyone 297837 Aug 24 12:51 fptr-g.exe
RK> -rwxr-xr-x 1 15362 everyone 296229 Aug 24 12:52 fptr-u.exe
RK> -rwxr-xr-x 1 15362 everyone 3072 Aug 24 12:48 fptr.exe
RK> fptr-g.exe is compiled with '-g', and fptr-u.exe is just "gcc fptr.c -o fptr-u.exe"
RK> fptr.exe is the stripped binary. Maybe without '-g' there is just the debug
RK> info of the support libraries included, and with '-g' there is also debug info
RK> for the program itself.
Right so. Other thing is that gcc (or, more specifically, ld) by
default produces COFF symbols in executable, unless you specify -s.
COFF symbols are nice thing for everyone who will have your program
crashed. Then one may remember crash address, lookup in debugger
which function lives by that address and send you sane bugreport ;-)
COFF symbols have acceptable size, rarely doubling file size.
RK> --
RK> Klaus Rotter, Siemens AG, ATD TD 6 EPG, Postfach 3249, 91020 Erlangen
Best regards,
Paul mailto:paul-ml@is.lg.ua
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com