summaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2009-01-23 18:47:42 +0000
committerPedro Alves <pedro@codesourcery.com>2009-01-23 18:47:42 +0000
commitecdf4477c1cba445b81193d6609f06aebdebeba9 (patch)
tree3912ef5e4b01399e96b2faa9fd0f9e1a3c8a55f8 /gdb/command.h
parent1f14283bfadf9f5d9b68b8863947c0d4fb2c3cf2 (diff)
downloadgdb-ecdf4477c1cba445b81193d6609f06aebdebeba9.tar.gz
2009-01-23 Pedro Alves <pedro@codesourcery.com>
* cli/cli-decode.c (add_setshow_zuinteger_cmd): New. * cli/cli-setshow.c (do_setshow_command): Handle it. * command.h (enum var_types): Add var_zuinteger. (add_setshow_zuinteger_cmd): Declare. * valprint.c (_initialize_valprint): Change the set input-radix and set output-radix commands to zuinteger type. 2009-01-23 Pedro Alves <pedro@codesourcery.com> * gdb.base/radix.exp: Add tests to ensure that that set input-radix 0 and set output-radix 0 are really rejected.
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/command.h b/gdb/command.h
index 1aeca6bbb30..b3f7013077f 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -87,6 +87,9 @@ typedef enum var_types
/* ZeroableInteger. *VAR is an int. Like Unsigned Integer except
that zero really means zero. */
var_zinteger,
+ /* ZeroableUnsignedInteger. *VAR is an unsigned int. Zero really
+ means zero. */
+ var_zuinteger,
/* Enumerated type. Can only have one of the specified values. *VAR is a
char pointer to the name of the element that we find. */
var_enum
@@ -332,6 +335,17 @@ extern void add_setshow_zinteger_cmd (char *name,
struct cmd_list_element **set_list,
struct cmd_list_element **show_list);
+extern void add_setshow_zuinteger_cmd (char *name,
+ enum command_class class,
+ unsigned int *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);
+
/* Do a "show" command for each thing on a command list. */
extern void cmd_show_list (struct cmd_list_element *, int, char *);