This is the mail archive of the
mailing list for the Cygwin project.
Re: debugging cygwin
On Mon, Jan 09, 2006 at 11:38:08AM -0500, Ken Senior wrote:
>Ok, so Igor's directions seem to conflict with the FAQ #15 about
>whether or not cygwin services must be halted. Can someone clarify
The FAQ is correct. You need to stop all running services when you
replace the DLL.
>In any case, after renaming the snapshot DLLs (from both 1/7 and 1/8)
>to /bin/cygwin1.dll, I find that no cygwin process will launch, not
>even the bash window. Replacing the old cygwin1.dll back reverts
>things to working again. Can anyone suggest a a more "stable" snapshot
>one might use for debugging purposes?
Lets take a step back, please.
The snapshots do work and you can debug with them. You are probably
doing something wrong when you unpack and copy the dll. You should be
copying both the dll and the dbg file to a temporary area and bunzipping
them. Then you may need to make sure that the DLL has executable
So, the steps should be something like this (this is just an example, I
include it only for reference):
c:\tmp>c:\cygwin\bin\chmod a+x cygwin1-20060109.*
c:\tmp>copy c:\cygwin\bin\cygwin1.dll c:\cygwin\bin\cygwin1.dll.saf
c:\tmp>ren cygwin1-20060109.dll cygwin1.dll
c:\tmp>ren cygwin1-20060109.dbg cygwin1.dbg
c:\tmp>copy cygwin1.d* c:\cygwin\bin
Btw, your next consternation point will probably come when you discover
that the .dbg file just provides the debugging symbols for the cygwin
DLL. You are going to need the cygwin DLL sources if you want to do any
useful debugging. And, unless you set up the sources in exactly the
same way as I did when I created the snapshot, you'll probably have to
investigate the gdb "directory" command.
There is a file in the cygwin source directory called "how-to-debug-cygwin.txt"
which might be instructive.
Oh, and, unless you really know what you're doing, you can't have two
versions of cygwin on your system at the same time. You need to replace
the one in /bin .
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html