This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 02/10] gdbarch_debug
It is similar to other patches except that this patch also removes the
declaration of 'gdbarch_debug', because it is declared in gdbarch.h.
gdb:
2012-07-30 Yao Qi <yao@codesourcery.com>
* arch-utils.h: Remove the declaration of 'gdbarch_debug'.
* gdbarch.sh (gdbarch_debug): Add 'unsigned'.
(extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
instead of add_setshow_zinteger_cmd.
* gdbarch.c, gdbarch.h: Re-generated.
gdbarch
gdb:
2012-07-31 Yao Qi <yao@codesourcery.com>
---
gdb/arch-utils.h | 3 ---
gdb/gdbarch.c | 4 ++--
gdb/gdbarch.h | 2 +-
gdb/gdbarch.sh | 6 +++---
4 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index ef4cb26..bed207f 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -27,9 +27,6 @@ struct minimal_symbol;
struct type;
struct gdbarch_info;
-/* gdbarch trace variable */
-extern int gdbarch_debug;
-
/* An implementation of gdbarch_displaced_step_copy_insn for
processors that don't need to modify the instruction before
single-stepping the displaced copy.
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 8c73db2..e4fe267 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -61,7 +61,7 @@ static void alloc_gdbarch_data (struct gdbarch *);
#ifndef GDBARCH_DEBUG
#define GDBARCH_DEBUG 0
#endif
-int gdbarch_debug = GDBARCH_DEBUG;
+unsigned int gdbarch_debug = GDBARCH_DEBUG;
static void
show_gdbarch_debug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
@@ -4684,7 +4684,7 @@ extern void _initialize_gdbarch (void);
void
_initialize_gdbarch (void)
{
- add_setshow_zinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\
+ add_setshow_zuinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\
Set architecture debugging."), _("\
Show architecture debugging."), _("\
When non-zero, architecture debugging is enabled."),
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index f2b186a..696bf14 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -1427,7 +1427,7 @@ extern void set_gdbarch_from_file (bfd *);
extern void initialize_current_architecture (void);
/* gdbarch trace variable */
-extern int gdbarch_debug;
+extern unsigned int gdbarch_debug;
extern void gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file);
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 05c0035..c20b8ca 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -1376,7 +1376,7 @@ extern void set_gdbarch_from_file (bfd *);
extern void initialize_current_architecture (void);
/* gdbarch trace variable */
-extern int gdbarch_debug;
+extern unsigned int gdbarch_debug;
extern void gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file);
@@ -1422,7 +1422,7 @@ static void alloc_gdbarch_data (struct gdbarch *);
#ifndef GDBARCH_DEBUG
#define GDBARCH_DEBUG 0
#endif
-int gdbarch_debug = GDBARCH_DEBUG;
+unsigned int gdbarch_debug = GDBARCH_DEBUG;
static void
show_gdbarch_debug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
@@ -2291,7 +2291,7 @@ extern void _initialize_gdbarch (void);
void
_initialize_gdbarch (void)
{
- add_setshow_zinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\\
+ add_setshow_zuinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\\
Set architecture debugging."), _("\\
Show architecture debugging."), _("\\
When non-zero, architecture debugging is enabled."),
--
1.7.7.6