Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Is there a way to unset inferior-tty?
@ 2016-07-01 18:32 Marc Khouzam
  2016-07-01 18:51 ` Pedro Alves
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Khouzam @ 2016-07-01 18:32 UTC (permalink / raw)
  To: gdb

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?

(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.).

(gdb) set inferior-tty ""
(gdb) show inferior-tty 
Terminal for future runs of program being debugged is """". <--- Not good enough

(gdb) set inferior-tty ''
(gdb) show inferior-tty 
Terminal for future runs of program being debugged is "''". <--- Not good enough

(gdb) unset inferior-tty
Undefined unset command: "inferior-tty".  Try "help unset".

Thanks

Marc


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-08-17 14:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-01 18:32 Is there a way to unset inferior-tty? 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
     [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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox