This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Debugging cygwin.dll with gdb
- To: cgf at bbc dot com
- Subject: Debugging cygwin.dll with gdb
- From: Geoffrey Noer <noer at cygnus dot com>
- Date: Sat, 7 Jun 1997 21:13:14 -0700 (PDT)
- Cc: gnu-win32 at cygnus dot com
Chris Faylor wrote:
[...]
> I am at a loss, however, as to how to debug this. I've built a cygwin.dll
> from scratch with Sergey's patches, but then, how do I debug it? Attempting
> to invoke gdb remotely hangs due to the problem I mentioned above.
[...]
A future change that needs to be made is to always build cygwin.dll
and libcygwin.a as well as (new) cygwindebug.dll and libcygwindebug.a.
Everything other than gdb would get linked against cygwin.dll whereas
gdb would be linked against cygwindebug.dll.
So if you need to debug a non-functional cygwin.dll, you could use any
previously working gdb since it would depend on a working cygwin.dll.
Alternatively, we could somehow statically link the code inside the
cygwin.dll inside gdb.
--
Geoffrey Noer
noer@cygnus.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".