Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Bob Rossi <bob@brasko.net>, Marc Khouzam <marc.khouzam@ericsson.com>
Cc: Simon Marchi <simon.marchi@polymtl.ca>,
	       "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Is there a way to unset inferior-tty?
Date: Thu, 11 Aug 2016 17:41:00 -0000	[thread overview]
Message-ID: <8a3af4bc-7789-6fac-7876-f47187f492d6@redhat.com> (raw)
In-Reply-To: <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


  reply	other threads:[~2016-08-11 17:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-01 18:32 Marc Khouzam
2016-07-01 18:51 ` Pedro Alves
2016-07-02  1:29   ` Simon Marchi
2016-07-02 14:04     ` Marc Khouzam
2016-07-26 18:43       ` Bob Rossi
2016-07-26 19:22         ` Marc Khouzam
2016-07-26 19:32           ` Bob Rossi
2016-08-11 14:22             ` Bob Rossi
2016-08-11 17:41               ` Pedro Alves [this message]
     [not found]       ` <875b0391-3b94-c3d7-c829-a8c3abb00770@redhat.com>
2016-08-15 19:49         ` Marc Khouzam
2016-08-17 12:14           ` Pedro Alves
2016-08-17 14:07             ` Marc Khouzam
2016-08-11 17:00     ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a3af4bc-7789-6fac-7876-f47187f492d6@redhat.com \
    --to=palves@redhat.com \
    --cc=bob@brasko.net \
    --cc=gdb@sourceware.org \
    --cc=marc.khouzam@ericsson.com \
    --cc=simon.marchi@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox