aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-03-05 14:23:23 +0000
committerYao Qi <yao@codesourcery.com>2013-03-05 14:23:23 +0000
commitb69b1fb10d005fd658668d7e2888c14c249a3481 (patch)
tree0299659857e5ad0d4d09e2b5ac8e9459cf00527b
parent3c095f49ce9e4b56a8725337f8b0d5edcc6bbc7d (diff)
downloadgdb-b69b1fb10d005fd658668d7e2888c14c249a3481.zip
gdb-b69b1fb10d005fd658668d7e2888c14c249a3481.tar.gz
gdb-b69b1fb10d005fd658668d7e2888c14c249a3481.tar.bz2
gdb/
* cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change parameter VAR's type from "unsigned int" to "int". * command.h (var_zuinteger_unlimited): Update its comments. (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/cli/cli-decode.c2
-rw-r--r--gdb/command.h7
3 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d712128..5171698 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2013-03-05 Yao Qi <yao@codesourcery.com>
+
+ * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
+ parameter VAR's type from "unsigned int" to "int".
+ * command.h (var_zuinteger_unlimited): Update its comments.
+ (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
+
2013-03-05 Corinna Vinschen <vinschen@redhat.de>
* NEWS: Mention new target x86_64-*-cygwin*.
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 49ccef3..a8f7747 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -708,7 +708,7 @@ add_setshow_zinteger_cmd (char *name, enum command_class class,
void
add_setshow_zuinteger_unlimited_cmd (char *name,
enum command_class class,
- unsigned int *var,
+ int *var,
const char *set_doc,
const char *show_doc,
const char *help_doc,
diff --git a/gdb/command.h b/gdb/command.h
index 17662b4..a25fe04 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -99,8 +99,9 @@ typedef enum var_types
/* ZeroableUnsignedInteger. *VAR is an unsigned int. Zero really
means zero. */
var_zuinteger,
- /* ZeroableUnsignedInteger with unlimited value. *VAR is an unsigned
- int, but its range is [0, INT_MAX]. -1 stands for unlimited. */
+ /* ZeroableUnsignedInteger with unlimited value. *VAR is an int,
+ but its range is [0, INT_MAX]. -1 stands for unlimited and
+ other negative numbers are not allowed. */
var_zuinteger_unlimited,
/* Enumerated type. Can only have one of the specified values.
*VAR is a char pointer to the name of the element that we
@@ -361,7 +362,7 @@ extern void add_setshow_zuinteger_cmd (char *name,
extern void
add_setshow_zuinteger_unlimited_cmd (char *name,
enum command_class class,
- unsigned int *var,
+ int *var,
const char *set_doc,
const char *show_doc,
const char *help_doc,