* dwarf2loc.c (entry_values_debug): Add 'unsigned'.
	(_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* dwarf2loc.h: Update the declaration of 'entry_values_debug'.
	* dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
	(_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
	instead of add_setshow_zinteger_cmd.
	* darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
	(_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
	instead of add_setshow_zinteger_cmd.
	* frame.c (frame_debug): Add 'unsigned'.
	(_intialize_frame): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* frame.h: Update the declaration of 'frame_debug'.
	* gdbtypes.c (overload_debug): Add 'unsigned'.
	(_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* inferior.h: Update declaration of 'debug_infrun'.
	* infrun.c (debug_infrun): Add 'unsigned'.
	(_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* jit.c (jit_debug): Add 'unsigned'.
	(_initialize_jit): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* linux-nat.c (debug_linux_nat): Add 'unsigned'.
	(_initialize_linux_nat): Call add_setshow_zuinteger_cmd
	instead of add_setshow_zinteger_cmd.
	* linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
	(_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* machoread.c (mach_o_debug_level): Add 'unsigned'.
	(_initialize_machoread): Call add_setshow_zuinteger_cmd
	instead of add_setshow_zinteger_cmd.
	* mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
	* microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
	(_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
	intead of add_setshow_zinteger_cmd.
	* mips-tdep.c (mips_debug): Add 'unsigned'.
	(_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
	instead of add_setshow_zinteger_cmd.
	* monitor.c (monitor_debug): Add 'unsigned'.
	(_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* observer.c (observer_debug): Add 'unsigned'.
	(_initialize_observer): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* parse.c (expressiondebug): Add 'unsigned'.
	(_initialize_parse): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* record.c (record_debug): Add 'unsigned'.
	(_initialize_record): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* record.h: Update the declaration of 'record_debug'.
	* stap-probe.c (stap_expression_debug): Add 'unsigned'.
	(_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* serial.c (global_serial_debug_p): Add 'unsigned'.
	(_initialize_serial): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
	(_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* solib-frv.c (solib_frv_debug): Add 'unsigned'.
	(_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* target.c (targetdebug): Add 'unsigned'.
	(initialize_targets): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* valops.c (overload_debug): Add 'unsigned'.
	* varobj.c (varobjdebug): Add 'unsigned'.
	(_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
	add_setshow_zinteger_cmd.
	* xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
	(_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
	instead of add_setshow_zinteger_cmd.

	* 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.
This commit is contained in:
Yao Qi 2012-08-02 09:36:40 +00:00
parent 95b07c9692
commit ccce17b060
34 changed files with 255 additions and 174 deletions

View file

@ -1,3 +1,87 @@
2012-08-02 Yao Qi <yao@codesourcery.com>
* dwarf2loc.c (entry_values_debug): Add 'unsigned'.
(_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* dwarf2loc.h: Update the declaration of 'entry_values_debug'.
* dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
(_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
instead of add_setshow_zinteger_cmd.
* darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
(_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
instead of add_setshow_zinteger_cmd.
* frame.c (frame_debug): Add 'unsigned'.
(_intialize_frame): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* frame.h: Update the declaration of 'frame_debug'.
* gdbtypes.c (overload_debug): Add 'unsigned'.
(_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* inferior.h: Update declaration of 'debug_infrun'.
* infrun.c (debug_infrun): Add 'unsigned'.
(_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* jit.c (jit_debug): Add 'unsigned'.
(_initialize_jit): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* linux-nat.c (debug_linux_nat): Add 'unsigned'.
(_initialize_linux_nat): Call add_setshow_zuinteger_cmd
instead of add_setshow_zinteger_cmd.
* linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
(_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* machoread.c (mach_o_debug_level): Add 'unsigned'.
(_initialize_machoread): Call add_setshow_zuinteger_cmd
instead of add_setshow_zinteger_cmd.
* mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
* microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
(_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
intead of add_setshow_zinteger_cmd.
* mips-tdep.c (mips_debug): Add 'unsigned'.
(_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
instead of add_setshow_zinteger_cmd.
* monitor.c (monitor_debug): Add 'unsigned'.
(_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* observer.c (observer_debug): Add 'unsigned'.
(_initialize_observer): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* parse.c (expressiondebug): Add 'unsigned'.
(_initialize_parse): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* record.c (record_debug): Add 'unsigned'.
(_initialize_record): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* record.h: Update the declaration of 'record_debug'.
* stap-probe.c (stap_expression_debug): Add 'unsigned'.
(_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* serial.c (global_serial_debug_p): Add 'unsigned'.
(_initialize_serial): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
(_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* solib-frv.c (solib_frv_debug): Add 'unsigned'.
(_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* target.c (targetdebug): Add 'unsigned'.
(initialize_targets): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* valops.c (overload_debug): Add 'unsigned'.
* varobj.c (varobjdebug): Add 'unsigned'.
(_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
add_setshow_zinteger_cmd.
* xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
(_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
instead of add_setshow_zinteger_cmd.
* 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.
2012-08-02 Yao Qi <yao@codesourcery.com> 2012-08-02 Yao Qi <yao@codesourcery.com>
* nto-tdep.c: Don't include cli/cli-decode.h and * nto-tdep.c: Don't include cli/cli-decode.h and

View file

@ -27,9 +27,6 @@ struct minimal_symbol;
struct type; struct type;
struct gdbarch_info; struct gdbarch_info;
/* gdbarch trace variable */
extern int gdbarch_debug;
/* An implementation of gdbarch_displaced_step_copy_insn for /* An implementation of gdbarch_displaced_step_copy_insn for
processors that don't need to modify the instruction before processors that don't need to modify the instruction before
single-stepping the displaced copy. single-stepping the displaced copy.

View file

@ -145,7 +145,7 @@ static struct inferior *darwin_inf_fake_stop;
#define PAGE_ROUND(x) PAGE_TRUNC((x) + mach_page_size - 1) #define PAGE_ROUND(x) PAGE_TRUNC((x) + mach_page_size - 1)
/* This controls output of inferior debugging. */ /* This controls output of inferior debugging. */
static int darwin_debug_flag = 0; static unsigned int darwin_debug_flag = 0;
/* Create a __TEXT __info_plist section in the executable so that gdb could /* Create a __TEXT __info_plist section in the executable so that gdb could
be signed. This is required to get an authorization for task_for_pid. be signed. This is required to get an authorization for task_for_pid.
@ -2057,7 +2057,7 @@ _initialize_darwin_inferior (void)
inferior_debug (2, _("GDB task: 0x%lx, pid: %d\n"), mach_task_self (), inferior_debug (2, _("GDB task: 0x%lx, pid: %d\n"), mach_task_self (),
getpid ()); getpid ());
add_setshow_zinteger_cmd ("darwin", class_obscure, add_setshow_zuinteger_cmd ("darwin", class_obscure,
&darwin_debug_flag, _("\ &darwin_debug_flag, _("\
Set if printing inferior communication debugging statements."), _("\ Set if printing inferior communication debugging statements."), _("\
Show if printing inferior communication debugging statements."), NULL, Show if printing inferior communication debugging statements."), NULL,

View file

@ -458,7 +458,7 @@ dwarf_expr_get_base_type (struct dwarf_expr_context *ctx,
/* See dwarf2loc.h. */ /* See dwarf2loc.h. */
int entry_values_debug = 0; unsigned int entry_values_debug = 0;
/* Helper to set entry_values_debug. */ /* Helper to set entry_values_debug. */
@ -4146,7 +4146,7 @@ extern initialize_file_ftype _initialize_dwarf2loc;
void void
_initialize_dwarf2loc (void) _initialize_dwarf2loc (void)
{ {
add_setshow_zinteger_cmd ("entry-values", class_maintenance, add_setshow_zuinteger_cmd ("entry-values", class_maintenance,
&entry_values_debug, &entry_values_debug,
_("Set entry values and tail call frames " _("Set entry values and tail call frames "
"debugging."), "debugging."),

View file

@ -33,7 +33,7 @@ struct axs_value;
dwarf2read.c and dwarf2loc.c. */ dwarf2read.c and dwarf2loc.c. */
/* `set debug entry-values' setting. */ /* `set debug entry-values' setting. */
extern int entry_values_debug; extern unsigned int entry_values_debug;
/* Return the OBJFILE associated with the compilation unit CU. If CU /* Return the OBJFILE associated with the compilation unit CU. If CU
came from a separate debuginfo file, then the master objfile is came from a separate debuginfo file, then the master objfile is

View file

@ -79,7 +79,7 @@ DEF_VEC_P (symbolp);
static int dwarf2_read_debug = 0; static int dwarf2_read_debug = 0;
/* When non-zero, dump DIEs after they are read in. */ /* When non-zero, dump DIEs after they are read in. */
static int dwarf2_die_debug = 0; static unsigned int dwarf2_die_debug = 0;
/* When non-zero, cross-check physname against demangler. */ /* When non-zero, cross-check physname against demangler. */
static int check_physname = 0; static int check_physname = 0;
@ -19640,7 +19640,7 @@ and symtab expansion."),
NULL, NULL,
&setdebuglist, &showdebuglist); &setdebuglist, &showdebuglist);
add_setshow_zinteger_cmd ("dwarf2-die", no_class, &dwarf2_die_debug, _("\ add_setshow_zuinteger_cmd ("dwarf2-die", no_class, &dwarf2_die_debug, _("\
Set debugging of the dwarf2 DIE reader."), _("\ Set debugging of the dwarf2 DIE reader."), _("\
Show debugging of the dwarf2 DIE reader."), _("\ Show debugging of the dwarf2 DIE reader."), _("\
When enabled (non-zero), DIEs are dumped after they are read in.\n\ When enabled (non-zero), DIEs are dumped after they are read in.\n\

View file

@ -165,7 +165,7 @@ frame_stash_invalidate (void)
/* Flag to control debugging. */ /* Flag to control debugging. */
int frame_debug; unsigned int frame_debug;
static void static void
show_frame_debug (struct ui_file *file, int from_tty, show_frame_debug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -2500,7 +2500,7 @@ Zero is unlimited."),
&show_backtrace_cmdlist); &show_backtrace_cmdlist);
/* Debug this files internals. */ /* Debug this files internals. */
add_setshow_zinteger_cmd ("frame", class_maintenance, &frame_debug, _("\ add_setshow_zuinteger_cmd ("frame", class_maintenance, &frame_debug, _("\
Set frame debugging."), _("\ Set frame debugging."), _("\
Show frame debugging."), _("\ Show frame debugging."), _("\
When non-zero, frame specific internal debugging is enabled."), When non-zero, frame specific internal debugging is enabled."),

View file

@ -151,7 +151,7 @@ extern const struct frame_id outer_frame_id;
/* Flag to control debugging. */ /* Flag to control debugging. */
extern int frame_debug; extern unsigned int frame_debug;
/* Construct a frame ID. The first parameter is the frame's constant /* Construct a frame ID. The first parameter is the frame's constant
stack address (typically the outer-bound), and the second the stack address (typically the outer-bound), and the second the

View file

@ -61,7 +61,7 @@ static void alloc_gdbarch_data (struct gdbarch *);
#ifndef GDBARCH_DEBUG #ifndef GDBARCH_DEBUG
#define GDBARCH_DEBUG 0 #define GDBARCH_DEBUG 0
#endif #endif
int gdbarch_debug = GDBARCH_DEBUG; unsigned int gdbarch_debug = GDBARCH_DEBUG;
static void static void
show_gdbarch_debug (struct ui_file *file, int from_tty, show_gdbarch_debug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -4684,7 +4684,7 @@ extern void _initialize_gdbarch (void);
void void
_initialize_gdbarch (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."), _("\ Set architecture debugging."), _("\
Show architecture debugging."), _("\ Show architecture debugging."), _("\
When non-zero, architecture debugging is enabled."), When non-zero, architecture debugging is enabled."),

View file

@ -1427,7 +1427,7 @@ extern void set_gdbarch_from_file (bfd *);
extern void initialize_current_architecture (void); extern void initialize_current_architecture (void);
/* gdbarch trace variable */ /* gdbarch trace variable */
extern int gdbarch_debug; extern unsigned int gdbarch_debug;
extern void gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file); extern void gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file);

View file

@ -1376,7 +1376,7 @@ extern void set_gdbarch_from_file (bfd *);
extern void initialize_current_architecture (void); extern void initialize_current_architecture (void);
/* gdbarch trace variable */ /* gdbarch trace variable */
extern int gdbarch_debug; extern unsigned int gdbarch_debug;
extern void gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file); 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 #ifndef GDBARCH_DEBUG
#define GDBARCH_DEBUG 0 #define GDBARCH_DEBUG 0
#endif #endif
int gdbarch_debug = GDBARCH_DEBUG; unsigned int gdbarch_debug = GDBARCH_DEBUG;
static void static void
show_gdbarch_debug (struct ui_file *file, int from_tty, show_gdbarch_debug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -2291,7 +2291,7 @@ extern void _initialize_gdbarch (void);
void void
_initialize_gdbarch (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."), _("\\ Set architecture debugging."), _("\\
Show architecture debugging."), _("\\ Show architecture debugging."), _("\\
When non-zero, architecture debugging is enabled."), When non-zero, architecture debugging is enabled."),

View file

@ -122,7 +122,7 @@ show_opaque_type_resolution (struct ui_file *file, int from_tty,
value); value);
} }
int overload_debug = 0; unsigned int overload_debug = 0;
static void static void
show_overload_debug (struct ui_file *file, int from_tty, show_overload_debug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -4044,7 +4044,7 @@ _initialize_gdbtypes (void)
gdbtypes_data = gdbarch_data_register_post_init (gdbtypes_post_init); gdbtypes_data = gdbarch_data_register_post_init (gdbtypes_post_init);
objfile_type_data = register_objfile_data (); objfile_type_data = register_objfile_data ();
add_setshow_zinteger_cmd ("overload", no_class, &overload_debug, add_setshow_zuinteger_cmd ("overload", no_class, &overload_debug,
_("Set debugging of C++ overloading."), _("Set debugging of C++ overloading."),
_("Show debugging of C++ overloading."), _("Show debugging of C++ overloading."),
_("When enabled, ranking of the " _("When enabled, ranking of the "

View file

@ -201,7 +201,7 @@ extern char *construct_inferior_arguments (int, char **);
/* From infrun.c */ /* From infrun.c */
extern int debug_infrun; extern unsigned int debug_infrun;
extern int stop_on_solib_events; extern int stop_on_solib_events;

View file

@ -140,7 +140,7 @@ show_debug_displaced (struct ui_file *file, int from_tty,
fprintf_filtered (file, _("Displace stepping debugging is %s.\n"), value); fprintf_filtered (file, _("Displace stepping debugging is %s.\n"), value);
} }
int debug_infrun = 0; unsigned int debug_infrun = 0;
static void static void
show_debug_infrun (struct ui_file *file, int from_tty, show_debug_infrun (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -7110,7 +7110,7 @@ There is no `stop' command, but you can set a hook on `stop'.\n\
This allows you to set a list of commands to be run each time execution\n\ This allows you to set a list of commands to be run each time execution\n\
of the program stops."), &cmdlist); of the program stops."), &cmdlist);
add_setshow_zinteger_cmd ("infrun", class_maintenance, &debug_infrun, _("\ add_setshow_zuinteger_cmd ("infrun", class_maintenance, &debug_infrun, _("\
Set inferior debugging."), _("\ Set inferior debugging."), _("\
Show inferior debugging."), _("\ Show inferior debugging."), _("\
When non-zero, inferior specific debugging is enabled."), When non-zero, inferior specific debugging is enabled."),

View file

@ -60,7 +60,7 @@ static struct gdbarch_data *jit_gdbarch_data;
/* Non-zero if we want to see trace of jit level stuff. */ /* Non-zero if we want to see trace of jit level stuff. */
static int jit_debug = 0; static unsigned int jit_debug = 0;
static void static void
show_jit_debug (struct ui_file *file, int from_tty, show_jit_debug (struct ui_file *file, int from_tty,
@ -1402,7 +1402,7 @@ _initialize_jit (void)
{ {
jit_reader_dir = relocate_gdb_directory (JIT_READER_DIR, jit_reader_dir = relocate_gdb_directory (JIT_READER_DIR,
JIT_READER_DIR_RELOCATABLE); JIT_READER_DIR_RELOCATABLE);
add_setshow_zinteger_cmd ("jit", class_maintenance, &jit_debug, add_setshow_zuinteger_cmd ("jit", class_maintenance, &jit_debug,
_("Set JIT debugging."), _("Set JIT debugging."),
_("Show JIT debugging."), _("Show JIT debugging."),
_("When non-zero, JIT debugging is enabled."), _("When non-zero, JIT debugging is enabled."),

View file

@ -201,7 +201,7 @@ static LONGEST (*super_xfer_partial) (struct target_ops *,
const gdb_byte *, const gdb_byte *,
ULONGEST, LONGEST); ULONGEST, LONGEST);
static int debug_linux_nat; static unsigned int debug_linux_nat;
static void static void
show_debug_linux_nat (struct ui_file *file, int from_tty, show_debug_linux_nat (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -5194,7 +5194,7 @@ extern initialize_file_ftype _initialize_linux_nat;
void void
_initialize_linux_nat (void) _initialize_linux_nat (void)
{ {
add_setshow_zinteger_cmd ("lin-lwp", class_maintenance, add_setshow_zuinteger_cmd ("lin-lwp", class_maintenance,
&debug_linux_nat, _("\ &debug_linux_nat, _("\
Set debugging of GNU/Linux lwp module."), _("\ Set debugging of GNU/Linux lwp module."), _("\
Show debugging of GNU/Linux lwp module."), _("\ Show debugging of GNU/Linux lwp module."), _("\

View file

@ -102,7 +102,7 @@ set_libthread_db_search_path (char *ignored, int from_tty,
/* If non-zero, print details of libthread_db processing. */ /* If non-zero, print details of libthread_db processing. */
static int libthread_db_debug; static unsigned int libthread_db_debug;
static void static void
show_libthread_db_debug (struct ui_file *file, int from_tty, show_libthread_db_debug (struct ui_file *file, int from_tty,
@ -2076,7 +2076,7 @@ Setting the search path to an empty list resets it to its default value."),
NULL, NULL,
&setlist, &showlist); &setlist, &showlist);
add_setshow_zinteger_cmd ("libthread-db", class_maintenance, add_setshow_zuinteger_cmd ("libthread-db", class_maintenance,
&libthread_db_debug, _("\ &libthread_db_debug, _("\
Set libthread-db debugging."), _("\ Set libthread-db debugging."), _("\
Show libthread-db debugging."), _("\ Show libthread-db debugging."), _("\

View file

@ -39,7 +39,7 @@
#include <string.h> #include <string.h>
/* If non-zero displays debugging message. */ /* If non-zero displays debugging message. */
static int mach_o_debug_level = 0; static unsigned int mach_o_debug_level = 0;
/* Dwarf debugging information are never in the final executable. They stay /* Dwarf debugging information are never in the final executable. They stay
in object files and the executable contains the list of object files read in object files and the executable contains the list of object files read
@ -1046,7 +1046,7 @@ _initialize_machoread ()
{ {
add_symtab_fns (&macho_sym_fns); add_symtab_fns (&macho_sym_fns);
add_setshow_zinteger_cmd ("mach-o", class_obscure, add_setshow_zuinteger_cmd ("mach-o", class_obscure,
&mach_o_debug_level, &mach_o_debug_level,
_("Set if printing Mach-O symbols processing."), _("Set if printing Mach-O symbols processing."),
_("Show if printing Mach-O symbols processing."), _("Show if printing Mach-O symbols processing."),

View file

@ -34,7 +34,7 @@ const char mi_no_values[] = "--no-values";
const char mi_simple_values[] = "--simple-values"; const char mi_simple_values[] = "--simple-values";
const char mi_all_values[] = "--all-values"; const char mi_all_values[] = "--all-values";
extern int varobjdebug; /* defined in varobj.c. */ extern unsigned int varobjdebug; /* defined in varobj.c. */
static void varobj_update_one (struct varobj *var, static void varobj_update_one (struct varobj *var,
enum print_values print_values, enum print_values print_values,

View file

@ -79,7 +79,7 @@ static const char *microblaze_register_names[] =
#define MICROBLAZE_NUM_REGS ARRAY_SIZE (microblaze_register_names) #define MICROBLAZE_NUM_REGS ARRAY_SIZE (microblaze_register_names)
static int microblaze_debug_flag = 0; static unsigned int microblaze_debug_flag = 0;
static void static void
microblaze_debug (const char *fmt, ...) microblaze_debug (const char *fmt, ...)
@ -739,7 +739,7 @@ _initialize_microblaze_tdep (void)
register_gdbarch_init (bfd_arch_microblaze, microblaze_gdbarch_init); register_gdbarch_init (bfd_arch_microblaze, microblaze_gdbarch_init);
/* Debug this files internals. */ /* Debug this files internals. */
add_setshow_zinteger_cmd ("microblaze", class_maintenance, add_setshow_zuinteger_cmd ("microblaze", class_maintenance,
&microblaze_debug_flag, _("\ &microblaze_debug_flag, _("\
Set microblaze debugging."), _("\ Set microblaze debugging."), _("\
Show microblaze debugging."), _("\ Show microblaze debugging."), _("\

View file

@ -177,7 +177,7 @@ const struct register_alias mips_numeric_register_aliases[] = {
static int mips_fpu_type_auto = 1; static int mips_fpu_type_auto = 1;
static enum mips_fpu_type mips_fpu_type = MIPS_DEFAULT_FPU_TYPE; static enum mips_fpu_type mips_fpu_type = MIPS_DEFAULT_FPU_TYPE;
static int mips_debug = 0; static unsigned int mips_debug = 0;
/* Properties (for struct target_desc) describing the g/G packet /* Properties (for struct target_desc) describing the g/G packet
layout. */ layout. */
@ -8879,7 +8879,7 @@ that would transfer 32 bits for some registers (e.g. SR, FSR) and\n\
&setlist, &showlist); &setlist, &showlist);
/* Debug this files internals. */ /* Debug this files internals. */
add_setshow_zinteger_cmd ("mips", class_maintenance, add_setshow_zuinteger_cmd ("mips", class_maintenance,
&mips_debug, _("\ &mips_debug, _("\
Set mips debugging."), _("\ Set mips debugging."), _("\
Show mips debugging."), _("\ Show mips debugging."), _("\

View file

@ -120,7 +120,7 @@ static ptid_t monitor_ptid;
static void monitor_debug (const char *fmt, ...) ATTRIBUTE_PRINTF (1, 2); static void monitor_debug (const char *fmt, ...) ATTRIBUTE_PRINTF (1, 2);
static int monitor_debug_p = 0; static unsigned int monitor_debug_p = 0;
/* NOTE: This file alternates between monitor_debug_p and remote_debug /* NOTE: This file alternates between monitor_debug_p and remote_debug
when determining if debug information is printed. Perhaps this when determining if debug information is printed. Perhaps this
@ -2376,7 +2376,7 @@ When enabled, a hashmark \'#\' is displayed."),
NULL, /* FIXME: i18n: */ NULL, /* FIXME: i18n: */
&setlist, &showlist); &setlist, &showlist);
add_setshow_zinteger_cmd ("monitor", no_class, &monitor_debug_p, _("\ add_setshow_zuinteger_cmd ("monitor", no_class, &monitor_debug_p, _("\
Set debugging of remote monitor communication."), _("\ Set debugging of remote monitor communication."), _("\
Show debugging of remote monitor communication."), _("\ Show debugging of remote monitor communication."), _("\
When enabled, communication between GDB and the remote monitor\n\ When enabled, communication between GDB and the remote monitor\n\

View file

@ -54,7 +54,7 @@
#include "command.h" #include "command.h"
#include "gdbcmd.h" #include "gdbcmd.h"
static int observer_debug; static unsigned int observer_debug;
static void static void
show_observer_debug (struct ui_file *file, int from_tty, show_observer_debug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -209,7 +209,7 @@ extern initialize_file_ftype _initialize_observer; /* -Wmissing-prototypes */
void void
_initialize_observer (void) _initialize_observer (void)
{ {
add_setshow_zinteger_cmd ("observer", class_maintenance, add_setshow_zuinteger_cmd ("observer", class_maintenance,
&observer_debug, _("\ &observer_debug, _("\
Set observer debugging."), _("\ Set observer debugging."), _("\
Show observer debugging."), _("\ Show observer debugging."), _("\

View file

@ -90,7 +90,7 @@ int in_parse_field;
field name. It is -1 if no dereference operation was found. */ field name. It is -1 if no dereference operation was found. */
static int expout_last_struct = -1; static int expout_last_struct = -1;
static int expressiondebug = 0; static unsigned int expressiondebug = 0;
static void static void
show_expressiondebug (struct ui_file *file, int from_tty, show_expressiondebug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -1859,7 +1859,7 @@ _initialize_parse (void)
type_stack.depth = 0; type_stack.depth = 0;
type_stack.elements = NULL; type_stack.elements = NULL;
add_setshow_zinteger_cmd ("expression", class_maintenance, add_setshow_zuinteger_cmd ("expression", class_maintenance,
&expressiondebug, &expressiondebug,
_("Set expression debugging."), _("Set expression debugging."),
_("Show expression debugging."), _("Show expression debugging."),

View file

@ -153,7 +153,7 @@ struct record_entry
}; };
/* This is the debug switch for process record. */ /* This is the debug switch for process record. */
int record_debug = 0; unsigned int record_debug = 0;
/* If true, query if PREC cannot record memory /* If true, query if PREC cannot record memory
change of next instruction. */ change of next instruction. */
@ -2982,7 +2982,7 @@ _initialize_record (void)
init_record_core_ops (); init_record_core_ops ();
add_target (&record_core_ops); add_target (&record_core_ops);
add_setshow_zinteger_cmd ("record", no_class, &record_debug, add_setshow_zuinteger_cmd ("record", no_class, &record_debug,
_("Set debugging of record/replay feature."), _("Set debugging of record/replay feature."),
_("Show debugging of record/replay feature."), _("Show debugging of record/replay feature."),
_("When enabled, debugging output for " _("When enabled, debugging output for "

View file

@ -22,7 +22,7 @@
#define RECORD_IS_USED (current_target.to_stratum == record_stratum) #define RECORD_IS_USED (current_target.to_stratum == record_stratum)
extern int record_debug; extern unsigned int record_debug;
extern int record_memory_query; extern int record_memory_query;
extern int record_arch_list_add_reg (struct regcache *regcache, int num); extern int record_arch_list_add_reg (struct regcache *regcache, int num);

View file

@ -27,7 +27,7 @@ extern void _initialize_serial (void);
/* Is serial being debugged? */ /* Is serial being debugged? */
static int global_serial_debug_p; static unsigned int global_serial_debug_p;
/* Linked list of serial I/O handlers. */ /* Linked list of serial I/O handlers. */
@ -671,7 +671,7 @@ Show numerical base for remote session logging"), NULL,
NULL, /* FIXME: i18n: */ NULL, /* FIXME: i18n: */
&setlist, &showlist); &setlist, &showlist);
add_setshow_zinteger_cmd ("serial", class_maintenance, add_setshow_zuinteger_cmd ("serial", class_maintenance,
&global_serial_debug_p, _("\ &global_serial_debug_p, _("\
Set serial debugging."), _("\ Set serial debugging."), _("\
Show serial debugging."), _("\ Show serial debugging."), _("\

View file

@ -35,7 +35,7 @@
#define GOT_MODULE_OFFSET 4 #define GOT_MODULE_OFFSET 4
/* Flag which indicates whether internal debug messages should be printed. */ /* Flag which indicates whether internal debug messages should be printed. */
static int solib_dsbt_debug = 0; static unsigned int solib_dsbt_debug = 0;
/* TIC6X pointers are four bytes wide. */ /* TIC6X pointers are four bytes wide. */
enum { TIC6X_PTR_SIZE = 4 }; enum { TIC6X_PTR_SIZE = 4 };
@ -1184,7 +1184,7 @@ _initialize_dsbt_solib (void)
dsbt_so_ops.bfd_open = solib_bfd_open; dsbt_so_ops.bfd_open = solib_bfd_open;
/* Debug this file's internals. */ /* Debug this file's internals. */
add_setshow_zinteger_cmd ("solib-dsbt", class_maintenance, add_setshow_zuinteger_cmd ("solib-dsbt", class_maintenance,
&solib_dsbt_debug, _("\ &solib_dsbt_debug, _("\
Set internal debugging of shared library code for DSBT ELF."), _("\ Set internal debugging of shared library code for DSBT ELF."), _("\
Show internal debugging of shared library code for DSBT ELF."), _("\ Show internal debugging of shared library code for DSBT ELF."), _("\

View file

@ -34,7 +34,7 @@
#include "gdb_bfd.h" #include "gdb_bfd.h"
/* Flag which indicates whether internal debug messages should be printed. */ /* Flag which indicates whether internal debug messages should be printed. */
static int solib_frv_debug; static unsigned int solib_frv_debug;
/* FR-V pointers are four bytes wide. */ /* FR-V pointers are four bytes wide. */
enum { FRV_PTR_SIZE = 4 }; enum { FRV_PTR_SIZE = 4 };
@ -1184,7 +1184,7 @@ _initialize_frv_solib (void)
frv_so_ops.bfd_open = solib_bfd_open; frv_so_ops.bfd_open = solib_bfd_open;
/* Debug this file's internals. */ /* Debug this file's internals. */
add_setshow_zinteger_cmd ("solib-frv", class_maintenance, add_setshow_zuinteger_cmd ("solib-frv", class_maintenance,
&solib_frv_debug, _("\ &solib_frv_debug, _("\
Set internal debugging of shared library code for FR-V."), _("\ Set internal debugging of shared library code for FR-V."), _("\
Show internal debugging of shared library code for FR-V."), _("\ Show internal debugging of shared library code for FR-V."), _("\

View file

@ -53,7 +53,7 @@ static const struct probe_ops stap_probe_ops;
/* Should we display debug information for the probe's argument expression /* Should we display debug information for the probe's argument expression
parsing? */ parsing? */
static int stap_expression_debug = 0; static unsigned int stap_expression_debug = 0;
/* The various possibilities of bitness defined for a probe's argument. /* The various possibilities of bitness defined for a probe's argument.
@ -1533,7 +1533,7 @@ _initialize_stap_probe (void)
{ {
VEC_safe_push (probe_ops_cp, all_probe_ops, &stap_probe_ops); VEC_safe_push (probe_ops_cp, all_probe_ops, &stap_probe_ops);
add_setshow_zinteger_cmd ("stap-expression", class_maintenance, add_setshow_zuinteger_cmd ("stap-expression", class_maintenance,
&stap_expression_debug, &stap_expression_debug,
_("Set SystemTap expression debugging."), _("Set SystemTap expression debugging."),
_("Show SystemTap expression debugging."), _("Show SystemTap expression debugging."),

View file

@ -205,7 +205,7 @@ int may_stop = 1;
/* Non-zero if we want to see trace of target level stuff. */ /* Non-zero if we want to see trace of target level stuff. */
static int targetdebug = 0; static unsigned int targetdebug = 0;
static void static void
show_targetdebug (struct ui_file *file, int from_tty, show_targetdebug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -4774,7 +4774,7 @@ initialize_targets (void)
add_info ("target", target_info, targ_desc); add_info ("target", target_info, targ_desc);
add_info ("files", target_info, targ_desc); add_info ("files", target_info, targ_desc);
add_setshow_zinteger_cmd ("target", class_maintenance, &targetdebug, _("\ add_setshow_zuinteger_cmd ("target", class_maintenance, &targetdebug, _("\
Set target debugging."), _("\ Set target debugging."), _("\
Show target debugging."), _("\ Show target debugging."), _("\
When non-zero, target debugging is enabled. Higher numbers are more\n\ When non-zero, target debugging is enabled. Higher numbers are more\n\

View file

@ -46,7 +46,7 @@
#include "symtab.h" #include "symtab.h"
#include "exceptions.h" #include "exceptions.h"
extern int overload_debug; extern unsigned int overload_debug;
/* Local functions. */ /* Local functions. */
static int typecmp (int staticp, int varargs, int nargs, static int typecmp (int staticp, int varargs, int nargs,

View file

@ -49,7 +49,7 @@ typedef int PyObject;
/* Non-zero if we want to see trace of varobj level stuff. */ /* Non-zero if we want to see trace of varobj level stuff. */
int varobjdebug = 0; unsigned int varobjdebug = 0;
static void static void
show_varobjdebug (struct ui_file *file, int from_tty, show_varobjdebug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value) struct cmd_list_element *c, const char *value)
@ -4176,7 +4176,7 @@ _initialize_varobj (void)
varobj_table = xmalloc (sizeof_table); varobj_table = xmalloc (sizeof_table);
memset (varobj_table, 0, sizeof_table); memset (varobj_table, 0, sizeof_table);
add_setshow_zinteger_cmd ("debugvarobj", class_maintenance, add_setshow_zuinteger_cmd ("debugvarobj", class_maintenance,
&varobjdebug, &varobjdebug,
_("Set varobj debugging."), _("Set varobj debugging."),
_("Show varobj debugging."), _("Show varobj debugging."),

View file

@ -55,7 +55,7 @@
#include "xtensa-config.h" #include "xtensa-config.h"
static int xtensa_debug_level = 0; static unsigned int xtensa_debug_level = 0;
#define DEBUGWARN(args...) \ #define DEBUGWARN(args...) \
if (xtensa_debug_level > 0) \ if (xtensa_debug_level > 0) \
@ -3308,7 +3308,7 @@ _initialize_xtensa_tdep (void)
gdbarch_register (bfd_arch_xtensa, xtensa_gdbarch_init, xtensa_dump_tdep); gdbarch_register (bfd_arch_xtensa, xtensa_gdbarch_init, xtensa_dump_tdep);
xtensa_init_reggroups (); xtensa_init_reggroups ();
add_setshow_zinteger_cmd ("xtensa", add_setshow_zuinteger_cmd ("xtensa",
class_maintenance, class_maintenance,
&xtensa_debug_level, &xtensa_debug_level,
_("Set Xtensa debugging."), _("Set Xtensa debugging."),