public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* show inferior-tty
@ 2005-07-11  2:13 Nick Roberts
  2005-07-11  3:32 ` Bob Rossi
  0 siblings, 1 reply; 8+ messages in thread
From: Nick Roberts @ 2005-07-11  2:13 UTC (permalink / raw)
  To: gdb


Firstly a doc error (GDB/MI -inferior-tty-show):

   The corresponding GDB command is `show inferior-tty /dev/pts/1'.

should presumably read:

   The corresponding GDB command is `show inferior-tty'.

Secondly, if I don't set the tty, I get:

(gdb) show inferior-tty
Terminal for future runs of program being debugged is "".

I think that it should still display a value.  Also perhaps it could just
say e.g

Terminal for future runs is "/dev/pts/1".

I don't know why the terminal name has to be quoted, but I see that this
practice is sometimes used for other show commands

With MI, if I don't set the tty, I get:

(gdb) 
-inferior-tty-show
^done
(gdb) 

Even if its still considered inappropriate to give a value in this case, I
think it should give a value e.g.

(gdb) 
-inferior-tty-show
^done,inferior_tty_terminal=""
(gdb) 

Incidentally, I don't see the need for this MI command or -inferior-tty-set
because:

(gdb) 
-gdb-set inferior-tty /dev/pts/1       
^done
(gdb) 
-gdb-show inferior-tty 
^done,value="/dev/pts/1"
(gdb) 


Nick

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

end of thread, other threads:[~2005-07-12 14:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-11  2:13 show inferior-tty Nick Roberts
2005-07-11  3:32 ` Bob Rossi
2005-07-11 13:10   ` Daniel Jacobowitz
2005-07-11 21:28     ` Nick Roberts
2005-07-12  2:07   ` Nick Roberts
2005-07-12 11:41     ` Bob Rossi
2005-07-12 13:34       ` Nick Roberts
2005-07-12 14:07         ` Dave Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).