This is the mail archive of the cygwin-developers@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

error_start=x:\somewhere\gdb.exe


When debugging problems in cygwin, or even in programs like make, I've
found it immensely useful to use Egor Duda's addition to Cygwin.

If you set cygwin=error_start=x:\somewhere\gdb.exe, gdb will pop up
whenever cygwin encounters a signal that will cause the program to
terminate.

For this to be effective with a buggy cygwin, y ou have to put the
gdb in a separate directory with a cygwin that has been built with
--enable-debugging so that there is no shared memory collisions.

If you compile with --enable-debugging, there are additional consistency
checks added to cygwin which will notify you when you attempt to close a
handle that shouldn't be closed.  gdb will also be started when cygwin
prints a fatal message.

FYI,
cgf

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]