This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Is there a way to unset inferior-tty?
- From: Pedro Alves <palves at redhat dot com>
- To: Bob Rossi <bob at brasko dot net>, Marc Khouzam <marc dot khouzam at ericsson dot com>
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 11 Aug 2016 18:41:22 +0100
- Subject: Re: Is there a way to unset inferior-tty?
- Authentication-results: sourceware.org; auth=none
- References: <E59706EF8DB1D147B15BECA3322E4BDC22AF1378@eusaamb103.ericsson.se> <302246af-a394-4a76-5223-5cac924bda9a@redhat.com> <9560791fd070c79f7ab54e5e7b63d433@simark.ca> <E59706EF8DB1D147B15BECA3322E4BDC22AF19ED@eusaamb103.ericsson.se> <20160726184303.GB989@xubuntu.brasko.net> <E59706EF8DB1D147B15BECA3322E4BDC22B13A9B@eusaamb103.ericsson.se> <20160726193231.GD989@xubuntu.brasko.net> <20160811142233.GB7851@xubuntu.brasko.net>
On 08/11/2016 03:22 PM, Bob Rossi wrote:
> On Tue, Jul 26, 2016 at 03:32:31PM -0400, Bob Rossi wrote:
>> I didn't know, until today, that multiple inferiors could exist!
>> Does GDB even support one /tty per inferior in that case?
>
> Could anyone elaborate on how gdb handles multiple inferiors with the
> /tty command,
> https://sourceware.org/gdb/onlinedocs/gdb/Input_002fOutput.html
>
> It doesn't look like you can set a tty per inferior, but maybe I'm
> wrong.
You definitely can:
(gdb) show inferior-tty
Terminal for future runs of program being debugged is "".
(gdb) tty tty1
(gdb) show inferior-tty
Terminal for future runs of program being debugged is "tty1".
(gdb) add-inferior
Added inferior 2
(gdb) inferior 2
[Switching to inferior 2 [<null>] (<noexec>)]
(gdb) show inferior-tty
Terminal for future runs of program being debugged is "tty2".
(gdb) inferior 1
[Switching to inferior 1 [<null>] (<noexec>)]
(gdb) show inferior-tty
Terminal for future runs of program being debugged is "tty1".
Thanks,
Pedro Alves