This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Strange freezes when using gdb (rxvt/mintty but not dos box)
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 20 Feb 2009 16:45:00 +0000
- Subject: Re: Strange freezes when using gdb (rxvt/mintty but not dos box)
- References: <499ED1CE.1050803@onevision.de>
Roland Schwingel wrote:
> gdb freezes upon execution of the inferior process when used from within
> mintty/rxvt, but does not freeze when gdb
> is invoked from a (conventional) bash inside of a windows DOS box.
> The application I want to debug is compiled for mingw.
You're trying to use a Cygwin GDB to cross-debug a MinGW (== plain old
win32) application. Dunno if that's completely guaranteed to work, but it
probably should for simple programs.
> So I assume some threading issues here in communication with the
> console/terminal from multiple threads...
Assumption probably wrong.
> But why does it work with DOS box and not using mintty/rxvt???
Clue here. You are launching a win32 app, from a cygwin app, in a
(non-console-based) GUI window. Won't work. Use a console. See discussions
around CYGWIN=tty for full details (which, if you had it set, ought to make
the crash occur in a console as well as in rxvt/mintty, but isn't anything you
can turn off for rxvt and get it working).
cheers,
DaveK
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/