This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: "set inferior-tty" on MS-Windows
- From: asmwarrior <asmwarrior at gmail dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 14 Aug 2012 15:57:12 +0800
- Subject: Re: "set inferior-tty" on MS-Windows
- References: <834no67kry.fsf@gnu.org>
On 2012-8-14 1:40, Eli Zaretskii wrote:
Is this setting supposed to work in the MinGW build of GDB while
debugging programs natively? I think not, but maybe people here have
tricks up their sleeves.
For that matter, did someone succeed to separate the I/O of the
inferior from that of GDB itself, while using Emacs 24 (which uses
GDB/MI) as the front-end? "M-x gdb" in Emacs provides (if you type
"M-x gdb-many-windows RET") a separate buffer/window for interacting
with the inferior, but it depends on "set inferior-tty" working, which
in turn depends on Emacs communicating with subprocesses via ptys,
which doesn't work on Windows. So the only practical way I found to
debug interactive console programs is to set new-console ON, and use
the separate console created by that.
Thanks in advance for any hints, tricks, etc.
There is a related discussion in the gdb maillist, see the posts here:
http://sourceware.org/ml/gdb/2012-05/msg00063.html
I have the same issue when using gdb-mi plugin for Code::blocks, see:
http://forums.codeblocks.org/index.php/topic,16230.msg109837.html#msg109837
But later, I have tried eran's way, but failed to open the new console, see:
http://forums.codeblocks.org/index.php/topic,16230.msg111531.html#msg111531
Yuanhui Zhang