diff options
author | Pedro Alves <palves@redhat.com> | 2009-01-23 18:47:46 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-01-23 18:47:46 +0000 |
commit | 1e8fb9762b0d2c468915815f73d2fadb44543be1 (patch) | |
tree | e06f47a274d8a332ed81aec3d10e2653b8b9aa7b /gdb/command.h | |
parent | 278df34e1203e781f97b32320094e1831f5f9624 (diff) | |
download | binutils-1e8fb9762b0d2c468915815f73d2fadb44543be1.zip binutils-1e8fb9762b0d2c468915815f73d2fadb44543be1.tar.gz binutils-1e8fb9762b0d2c468915815f73d2fadb44543be1.tar.bz2 |
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.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/command.h b/gdb/command.h index 1aeca6b..b3f7013 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 *); |