This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mi tty commands


   Date: Mon, 11 Jul 2005 11:51:55 -0400
   From: Bob Rossi <bob@brasko.net>

   > Bob, please make sure there are no regressions from your patch before
   > you check things in.  I now get:
   > 
   > FAIL: gdb.base/default.exp: tty
   > FAIL: gdb.base/help.exp: help tty
   > 
   > because the output of the tty command changed.  In the past we had:
   > 
   > (gdb) tty
   > Argument required (terminal name for running target process).
   > 
   > whereas now we have
   > 
   > (gdb) tty
   > Argument required (filename to set it to.).
   > 
   > I don't really consider this an improvement...

   Does anyone know why the "tty" command gives the "default" message when
   I have,

      /* add the filename of the terminal connected to inferior I/O */
      add_setshow_filename_cmd ("inferior-tty", class_run,
				&inferior_io_terminal, _("\
      Set terminal for future runs of program being debugged."), _("\
      Show terminal for future runs of program being debugged."), _("\
      Usage: set inferior-tty /dev/pts/1"), NULL, NULL, &setlist, &showlist);

      add_com_alias ("tty", "set inferior-tty", class_alias, 0);

   I would expect the alias to take on the usage note from the command it
   points to. Either that, or allow me to explicitly give it a usage note.
   Any suggestions?

But it does take the usage nore from the command it points to:

(gdb) set inferior-tty
Argument required (filename to set it to.).

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]