From: noer@cygnus.com (Geoffrey Noer)
Subject: Debugging cygwin.dll with gdb
8 Jun 1997 00:31:30 -0700
Sender: mail@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <199706080413.VAA14884.cygnus.gnu-win32@rtl.cygnus.com>
Original-To: cgf@bbc.com
Original-Cc: gnu-win32@cygnus.com
In-Reply-To: <EBB7qI.345@bbc.com> from "Chris Faylor" at Jun 5, 97 03:44:42 pm
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text
Original-Sender: owner-gnu-win32@cygnus.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".
