summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-17 15:00:36 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-17 15:00:36 +0000
commit2a9532b9bb2959ebb9d7c7772636eb9e45e81e8e (patch)
tree785a1cd7591b00140400cb44311509f85f449d97 /gdb/cli
parentfbb38cc2f8bfd386c918d62fb81b2a25079c2801 (diff)
downloadgdb-2a9532b9bb2959ebb9d7c7772636eb9e45e81e8e.tar.gz
2005-02-17 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd) (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd) (add_setshow_filename_cmd, add_setshow_string_cmd) (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete fprint_setshow parameter. * command.h (fprint_setshow_ftype): Delete. (add_setshow_cmd_full, add_setshow_enum_cmd) (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd) (add_setshow_filename_cmd, add_setshow_string_cmd) (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete fprint_setshow parameter. * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update. * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update. * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update. * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update * remote.c, target.c, cli/cli-logging.c: Update.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-decode.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 5d1583d9b6e..529b475220d 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -515,6 +515,25 @@ add_setshow_string_cmd (char *name, enum command_class class,
}
/* Add element named NAME to both the set and show command LISTs (the
+ list for set/show or some sublist thereof). */
+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)
+{
+ add_setshow_cmd_full (name, class, var_string_noescape, var,
+ set_doc, show_doc, help_doc,
+ set_func, show_func,
+ set_list, show_list,
+ NULL, NULL);
+}
+
+/* Add element named NAME to both the set and show command LISTs (the
list for set/show or some sublist thereof). CLASS is as in
add_cmd. VAR is address of the variable which will contain the
value. SET_DOC and SHOW_DOC are the documentation strings. */