Debug info, was: Re: AW: It's compiled and works

Paul Sokolovsky paul-ml@is.lg.ua
Tue Aug 31 23:49:00 GMT 1999


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



More information about the Cygwin mailing list