This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 07/10] nto
gdb:
2012-07-30 Yao Qi <yao@codesourcery.com>
* nto-tdep.c (_initialize_nto_tdep;): Call add_setshow_zuinteger_cmd
instead of add_setshow_zinteger_cmd.
* nto-tdep.h (struct nto_target_ops): Add 'unsigned' to field
'internal_debugging'.
---
gdb/nto-tdep.c | 12 ++++++------
gdb/nto-tdep.h | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index 5e0c910..951acd3 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -400,15 +400,15 @@ extern initialize_file_ftype _initialize_nto_tdep;
void
_initialize_nto_tdep (void)
{
- add_setshow_zinteger_cmd ("nto-debug", class_maintenance,
- &nto_internal_debugging, _("\
+ add_setshow_zuinteger_cmd ("nto-debug", class_maintenance,
+ &nto_internal_debugging, _("\
Set QNX NTO internal debugging."), _("\
Show QNX NTO internal debugging."), _("\
When non-zero, nto specific debug info is\n\
displayed. Different information is displayed\n\
for different positive values."),
- NULL,
- NULL, /* FIXME: i18n: QNX NTO internal
- debugging is %s. */
- &setdebuglist, &showdebuglist);
+ NULL,
+ NULL, /* FIXME: i18n: QNX NTO internal
+ debugging is %s. */
+ &setdebuglist, &showdebuglist);
}
diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h
index f2c9c4e..b541c33 100644
--- a/gdb/nto-tdep.h
+++ b/gdb/nto-tdep.h
@@ -32,7 +32,7 @@
struct nto_target_ops
{
/* For 'maintenance debug nto-debug' command. */
- int internal_debugging;
+ unsigned int internal_debugging;
/* The CPUINFO flags from the remote. Currently used by
i386 for fxsave but future proofing other hosts.
--
1.7.7.6