This is the mail archive of the
mailing list for the Cygwin project.
Re: some notes on debugging screen (long) (was: cygwin-1.5.6-1 Vim now broken)
On Tue, Jan 20, 2004 at 09:59:21AM -0800, Rafael Kitover wrote:
>You will not be able to use gdb on a screen binary directly, as you
>will get a "must be connected to terminal" error, use something like:
This isn't necessary. You should be able to:
(gdb) set env CYGWIN=tty
>echo gdb --pid=$$ --directory=/path-to-screen-source/screen-3.9.13/ \
>then run the gdb command this script prints out in another terminal
>You can also try using insight, the GUI version of GDB.
>Make sure you "set follow-fork-mode child" in gdb, or parent, depending on which part of screen you're trying to follow.
AFAIK, follow-fork mode doesn't work all that well in gdb for windows.
If you configure cygwin with --enable-debugging then you can set a
windows environment variable CYGWIN_DEBUG=screen and cygwin will pop
up a debugger whenever screen is run.
>Using symbol-file /install/bin/cygwin1.dll should let you step into the Cygwin dll. (cd to the appropriate source directory).
or use the 'dll cygwin1' command.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html