Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Marc Khouzam <marc.khouzam@ericsson.com>,
	       "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Is there a way to unset inferior-tty?
Date: Fri, 01 Jul 2016 18:51:00 -0000	[thread overview]
Message-ID: <302246af-a394-4a76-5223-5cac924bda9a@redhat.com> (raw)
In-Reply-To: <E59706EF8DB1D147B15BECA3322E4BDC22AF1378@eusaamb103.ericsson.se>

On 07/01/2016 07:32 PM, Marc Khouzam wrote:
> Hi,
> 
> Is there a way to unset inferior-tty?
> 
> I'm working on different possible solutions to allow Eclipse to handle when the user
> types 'run' on the GDB console.  Currently, when that happens, the inferior fails
> to restart because it tries to use the previous tty which has been closed.
> I wanted to test simply removing the setting for the tty to allow the inferior to
> start in this case.  But I can't figure out how to unset it.
> 
> Any ideas?
> Can I set it to something that would be the equivalent to unsetting it?

Can't think of any way.

Setting it to gdb's own tty ends up actually disabling gdb's tty 
settings saving/restoring, so it's not equivalent...

> 
> (gdb) show inferior-tty 
> Terminal for future runs of program being debugged is "".   <------ Want this back
> (gdb) set inferior-tty /dev/pts/3
> (gdb) show inferior-tty 
> Terminal for future runs of program being debugged is "/dev/pts/3".
> 
> (gdb) set inferior-tty
> Argument required (filename to set it to.).

I think this should just be fixed to work.

The fix should be very similar to this:

 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=811a659a779fdf93293fe1105d99e9db171a8b68

Thanks,
Pedro Alves


  reply	other threads:[~2016-07-01 18:51 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 [this message]
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
     [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=302246af-a394-4a76-5223-5cac924bda9a@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=marc.khouzam@ericsson.com \
    /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