delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
X-Authority-Analysis: | v=1.0 c=1 a=h0Z8ZDqwwmEA:10 a=UZ9-uK0bO5oA:10 a=xe8BsctaAAAA:8 a=4BKfFlMbaz2jY24k1k0A:9 a=qQH0lkQeIxuVJvbdhGQA:7 a=9jB4FgynGCqwhFQAs-C7k03t9ekA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10 |
Message-ID: | <48BBDD41.5000400@byu.net> |
Date: | Mon, 01 Sep 2008 06:17:05 -0600 |
From: | Eric Blake <ebb9 AT byu DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com, "Charles D. Russell" <worwor AT bellsouth DOT net> |
Subject: | Re: getting gdb I/O and progam I/O into separate windows |
References: | <g9fik0$38l$1 AT ger DOT gmane DOT org> <g9frs3$kd0$1 AT ger DOT gmane DOT org> |
In-Reply-To: | <g9frs3$kd0$1@ger.gmane.org> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to René Berber on 8/31/2008 10:42 PM: > Charles D. Russell wrote: > >> Can this be done? I can't redirect program output (from ncurses) into >> an rxvt window using the tty command in gdb. Googling gdb+tty+cygwin >> shows that there have been problems in the past, but I didn't find >> anything recent. > > That's what Insight is for (and ddd under X), a GUI that separates code > from memory and the program's output (plus gdb output, breakpoints, and > so on). Or you can use process attaching, sticking with command-line gdb instead of gui. I frequently start a program in one console, then in another console, use ps to determine its pid, then invoke 'gdp path/to/program pid' where pid was determined from ps to break in to the program. Depending on the program, it may be helpful to recompile with an added sleep() in main, to give you time to attach before it does anything worth debugging. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAki73UEACgkQ84KuGfSFAYCbjQCglKo6X9XBajjuO8h31yiYVNdF DGMAn08iwqI2AHS+Hnd5xoKe45M5Asbh =wdIX -----END PGP SIGNATURE----- -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |