diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-11-14 21:40:19 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-11-14 21:40:19 +0000 |
commit | 427c3a89d32cedc331b0bf9a3ecb74716f123276 (patch) | |
tree | 802a9df10e07d13a45a4d70720ece2f99a89835c /gdb/remote.c | |
parent | dbe717effbdf31236088837f4686fd5ad5e71893 (diff) | |
download | fsf-binutils-gdb-427c3a89d32cedc331b0bf9a3ecb74716f123276.zip fsf-binutils-gdb-427c3a89d32cedc331b0bf9a3ecb74716f123276.tar.gz fsf-binutils-gdb-427c3a89d32cedc331b0bf9a3ecb74716f123276.tar.bz2 |
gdb/
* remote.c (set_remote_cmd): Call help_list.
(show_remote_cmd): Skip legacy aliases. Handle non-show_cmd
entries. Add missed cleanup.
* cli/cli-setshow.c (cmd_show_list): Handle non-show_cmd entries.
gdb/doc/
* gdb.texinfo (Remote configuration): Rewrite documentation for
packet configuration commands.
(OS Information): Adjust reference to qXfer:auxv:read.
(General Query Packets): Remove references to read-aux-vector-packet
and set remote get-thread-local-storage-address.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 1744b0f..afbec0d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -6082,13 +6082,14 @@ Specify the serial device it is connected to (e.g. /dev/ttya).", static void set_remote_cmd (char *args, int from_tty) { + help_list (remote_set_cmdlist, "set remote ", -1, gdb_stdout); } static void show_remote_cmd (char *args, int from_tty) { /* We can't just use cmd_show_list here, because we want to skip - the redundant "show remote Z-packet". */ + the redundant "show remote Z-packet" and the legacy aliases. */ struct cleanup *showlist_chain; struct cmd_list_element *list = remote_show_cmdlist; @@ -6096,16 +6097,26 @@ show_remote_cmd (char *args, int from_tty) for (; list != NULL; list = list->next) if (strcmp (list->name, "Z-packet") == 0) continue; - else if (list->type == show_cmd) + else if (list->type == not_set_cmd) + /* Alias commands are exactly like the original, except they + don't have the normal type. */ + continue; + else { struct cleanup *option_chain = make_cleanup_ui_out_tuple_begin_end (uiout, "option"); ui_out_field_string (uiout, "name", list->name); ui_out_text (uiout, ": "); - do_setshow_command ((char *) NULL, from_tty, list); + if (list->type == show_cmd) + do_setshow_command ((char *) NULL, from_tty, list); + else + cmd_func (list, NULL, from_tty); /* Close the tuple. */ do_cleanups (option_chain); } + + /* Close the tuple. */ + do_cleanups (showlist_chain); } static void |