Debugging information for DLL's

DJ Delorie dj@delorie.com
Sun Jan 31 23:52:00 GMT 1999


setera@us.ibm.com wrote:
> 
> Here is a somewhat silly question.

Not at all.

> If I build a set of DLL's and
> associated ".a" files with debugging information turned on, where does that
> information end up?

Both.  The debugging information for the code in the .a is in the .a,
and the debugging information for the code in the .dll is in the .dll.

> If it is in the
> DLL, can I run strip on a DLL to trim the size of the DLL?

Yes.  "strip cygwin1.dll" works just fine, for example, and we do it
for snapshots every day.  There is almost no difference in the
format of EXEs and DLLs, so anything that works for an EXE (like
strip) will work for a DLL as well.

You can do a partial strip on the .a to remove the symbolic debug
information while leaving in the symbols needed for linking
by using "strip -g foo.a".

> Or does it all
> end up in the executable that is linked to the DLL which can then be
> stripped?

The executable may also be stripped, as it also has debugging information
in it.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list