This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "set inferior-tty" on MS-Windows


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


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