Discussion:
[Bug gdb/21985] New: set inferior-tty doesn't work for remote or sim targets
jon at beniston dot com
2017-08-21 14:48:52 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=21985

Bug ID: 21985
Summary: set inferior-tty doesn't work for remote or sim
targets
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: jon at beniston dot com
Target Milestone: ---

Created attachment 10356
--> https://sourceware.org/bugzilla/attachment.cgi?id=10356&action=edit
Potential fix

The set inferior-tty command doesn't work for remote or sim targets. (That is,
remote targets using remote-fileio to have the IO appear on the debug host).

This is a shame as Eclipse (and potentially other front-ends) use this command
to separate the windows used for target IO and the gdb console. This therefore
doesn't currently work for remote and sim targets.

The attached patch adds support for this command in remote-fileio.c and
remote-sim.c. Reads/writes from/to stdin/stdout are redirected to the tty.

This may not be the idea way to implement this within GDB, but it does get it
working with Eclipse.
--
You are receiving this mail because:
You are on the CC list for the bug.
jon at beniston dot com
2017-08-21 16:00:25 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=21985

jon at beniston dot com changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #10356|0 |1
is obsolete| |

--- Comment #1 from jon at beniston dot com ---
Created attachment 10357
--> https://sourceware.org/bugzilla/attachment.cgi?id=10357&action=edit
Add stderr support for sim target
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-04-20 13:06:30 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=21985

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Thanks for the patch.
Please follow the contribution instructions to have it reviewed:
https://sourceware.org/gdb/wiki/ContributionChecklist
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...