diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-14 21:05:07 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-14 21:05:07 +0000 |
commit | 44478ab3404a5416c1864f8b47ad28eaca7bb0d9 (patch) | |
tree | 19712603f7ece0901405ea9f0598eff0b3f172dc /gdb/command.h | |
parent | 06d66ee9d97cf451db4bdd7952eca099bc171706 (diff) | |
download | fsf-binutils-gdb-44478ab3404a5416c1864f8b47ad28eaca7bb0d9.zip fsf-binutils-gdb-44478ab3404a5416c1864f8b47ad28eaca7bb0d9.tar.gz fsf-binutils-gdb-44478ab3404a5416c1864f8b47ad28eaca7bb0d9.tar.bz2 |
* cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
set command.
* command.h (add_setshow_string_noescape_cmd): Update.
* corefile.c (set_gnutarget_command): Remove trailing whitespace.
(complete_set_gnutarget): New function.
(_initialize_core): Set the "set gnutarget" completer.
gdb/testsuite
* gdb.base/completion.exp: Add "set gnutarget" test.
Diffstat (limited to 'gdb/command.h')
-rw-r--r-- | gdb/command.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gdb/command.h b/gdb/command.h index 6809a62..17662b4 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -291,16 +291,17 @@ extern void add_setshow_string_cmd (char *name, struct cmd_list_element **set_list, struct cmd_list_element **show_list); -extern void add_setshow_string_noescape_cmd (char *name, - enum command_class class, - char **var, - const char *set_doc, - const char *show_doc, - const char *help_doc, - cmd_sfunc_ftype *set_func, - show_value_ftype *show_func, - struct cmd_list_element **set_list, - struct cmd_list_element **show_list); +extern struct cmd_list_element *add_setshow_string_noescape_cmd + (char *name, + enum command_class class, + char **var, + const char *set_doc, + const char *show_doc, + const char *help_doc, + cmd_sfunc_ftype *set_func, + show_value_ftype *show_func, + struct cmd_list_element **set_list, + struct cmd_list_element **show_list); extern void add_setshow_optional_filename_cmd (char *name, enum command_class class, |