From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sources.redhat.com
Subject: Re: mi tty commands
Date: Sun, 03 Jul 2005 18:43:00 -0000 [thread overview]
Message-ID: <20050703184325.GH13811@nevyn.them.org> (raw)
In-Reply-To: <20050618122921.GA30774@white>
On Sat, Jun 18, 2005 at 08:29:21AM -0400, Bob Rossi wrote:
> Index: gdb/ChangeLog
> + * fork-child.c (fork-inferior): Use accessor function for
> + inferior_io_terminal.
> + * infcmd.c (inferior_io_terminal): Make static.
> + (set_inferior_io_terminal): New function.
> + (get_inferior_io_terminal): Ditto.
> + (tty_command): Use accessor function.
> + (_initialize_infcmd): Add inferior_tty setshow variable.
> + (_initialize_infcmd): Remove tty command.
> + (_initialize_infcmd): Add a tty command that is an alias.
> + * inferior.h (set_inferior_io_terminal): New prototype.
> + (get_inferior_io_terminal): Ditto.
> + (new_tty_prefork): Add const qualifier to parameter.
> + * inflow.c (inferior_thisrun_terminal): Add const qualifier.
> + (new_tty_prefork): Add const qualifier to parameter.
> + * nto-procfs (procfs_create_inferior): Use accessor function.
> + (procfs_create_inferior): Add const qualifier to locals.
> + * win32-nat.c (child_create_inferior): Ditto.
> + * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): New function.
> + (mi_cmd_inferior_tty_set): Ditto.
> + * mi/mi-cmds.c (mi_cmds): Add inferior-tty-set and inferior-tty-show
> + * mi/mi-cmds.h (mi_cmd_inferior_tty_set): Add prototype.
> + (mi_cmd_inferior_tty_show): Ditto.
>
> Index: gdb/doc/ChangeLog
> + * gdb.texinfo (GDB/MI Miscellaneous Commands): Add -inferior-tty-set
> + and -inferior-tty-show.
> + (Input/Output): Document "set/show inferior-tty" and tty alias.
>
> Index: gdb/testsuite/ChangeLog
> + * gdb.mi/mi-basics.exp (test_setshow_inferior_tty): Test MI tty
> + command.
This is almost completely OK now! Two minor fixes:
> Index: gdb/mi/mi-cmds.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/mi/mi-cmds.c,v
> retrieving revision 1.16
> diff -w -u -r1.16 mi-cmds.c
> --- gdb/mi/mi-cmds.c 11 Feb 2005 18:13:55 -0000 1.16
> +++ gdb/mi/mi-cmds.c 18 Jun 2005 12:21:32 -0000
> @@ -153,6 +153,8 @@
> { "trace-save", { NULL, 0 }, NULL, NULL },
> { "trace-start", { NULL, 0 }, NULL, NULL },
> { "trace-stop", { NULL, 0 }, NULL, NULL },
> + { "inferior-tty-set", { NULL, 0 }, NULL, mi_cmd_inferior_tty_set},
> + { "inferior-tty-show", { NULL, 0 }, NULL, mi_cmd_inferior_tty_show},
> { "var-assign", { NULL, 0 }, 0, mi_cmd_var_assign},
> { "var-create", { NULL, 0 }, 0, mi_cmd_var_create},
> { "var-delete", { NULL, 0 }, 0, mi_cmd_var_delete},
> Index: gdb/mi/mi-cmds.h
> ===================================================================
> RCS file: /cvs/src/src/gdb/mi/mi-cmds.h,v
> retrieving revision 1.15
> diff -w -u -r1.15 mi-cmds.h
> --- gdb/mi/mi-cmds.h 13 Jan 2005 22:08:27 -0000 1.15
> +++ gdb/mi/mi-cmds.h 18 Jun 2005 12:21:32 -0000
> @@ -96,6 +96,8 @@
> extern mi_cmd_args_ftype mi_cmd_target_select;
> extern mi_cmd_argv_ftype mi_cmd_thread_list_ids;
> extern mi_cmd_argv_ftype mi_cmd_thread_select;
> +extern mi_cmd_argv_ftype mi_cmd_inferior_tty_set;
> +extern mi_cmd_argv_ftype mi_cmd_inferior_tty_show;
> extern mi_cmd_argv_ftype mi_cmd_var_assign;
> extern mi_cmd_argv_ftype mi_cmd_var_create;
> extern mi_cmd_argv_ftype mi_cmd_var_delete;
At some point the commant must have been named -tty-set, because then
these lists would be nicely alphabetized :-) Please put these in the
right place.
> Index: gdb/testsuite/gdb.mi/mi-basics.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-basics.exp,v
> retrieving revision 1.9
> diff -w -u -r1.9 mi-basics.exp
> --- gdb/testsuite/gdb.mi/mi-basics.exp 9 Aug 2004 16:32:44 -0000 1.9
> +++ gdb/testsuite/gdb.mi/mi-basics.exp 18 Jun 2005 12:21:40 -0000
Missing a copyright year update.
Feel free to check it in with those changes.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-07-03 18:43 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-24 20:49 Bob Rossi
2005-02-26 4:33 ` Eli Zaretskii
2005-02-26 6:07 ` Bob Rossi
2005-02-26 8:25 ` Daniel Jacobowitz
2005-02-28 20:28 ` Bob Rossi
2005-03-02 2:52 ` Bob Rossi
2005-03-11 2:26 ` Bob Rossi
2005-05-23 3:13 ` Bob Rossi
2005-05-28 23:49 ` Daniel Jacobowitz
2005-05-29 8:37 ` Eli Zaretskii
2005-05-29 16:22 ` Daniel Jacobowitz
2005-05-29 18:10 ` Eli Zaretskii
2005-05-29 19:05 ` Daniel Jacobowitz
2005-05-30 15:48 ` Bob Rossi
2005-06-01 0:14 ` Bob Rossi
2005-06-01 4:00 ` Eli Zaretskii
2005-06-01 13:07 ` Bob Rossi
2005-06-01 17:42 ` Bob Rossi
2005-06-01 20:25 ` Eli Zaretskii
2005-06-02 22:17 ` Bob Rossi
2005-06-03 6:48 ` Eli Zaretskii
2005-06-03 17:32 ` Bob Rossi
2005-06-10 2:28 ` Bob Rossi
2005-06-10 6:36 ` Eli Zaretskii
2005-06-10 11:04 ` Bob Rossi
2005-06-13 3:07 ` Daniel Jacobowitz
2005-06-13 6:09 ` Eli Zaretskii
2005-06-17 21:08 ` Bob Rossi
2005-06-17 21:14 ` Daniel Jacobowitz
2005-06-18 8:27 ` Eli Zaretskii
2005-06-18 12:29 ` Bob Rossi
2005-06-26 13:43 ` Bob Rossi
2005-07-03 18:43 ` Daniel Jacobowitz [this message]
2005-07-06 14:54 ` Bob Rossi
2005-07-10 21:08 ` Mark Kettenis
2005-07-10 21:32 ` Bob Rossi
2005-07-11 15:52 ` Bob Rossi
2005-07-11 18:41 ` Mark Kettenis
2005-07-11 20:00 ` Bob Rossi
2005-07-11 20:01 ` Daniel Jacobowitz
2005-07-11 20:44 ` Bob Rossi
2005-07-11 20:55 ` Mark Kettenis
2005-07-11 21:26 ` Bob Rossi
2005-07-12 20:56 ` Mark Kettenis
2005-07-14 14:51 ` Bob Rossi
2005-06-01 20:12 ` Eli Zaretskii
2005-06-01 20:43 ` Bob Rossi
2005-06-02 3:48 ` Eli Zaretskii
2005-05-30 15:48 ` Bob Rossi
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=20050703184325.GH13811@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.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