gdb: make debug_infrun a bool
gdb/ChangeLog: * infrun.h (debug_infrun): Make a bool. * infrun.c (debug_infrun): Make a bool. (_initialize_infrun): Use add_setshow_boolean_cmd to define "set debug infrun". Change-Id: If934106a6d3f879b93d265855eb705b1d606339a
This commit is contained in:
parent
74b773fcd6
commit
94ba44a68d
@ -1,3 +1,10 @@
|
|||||||
|
2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
|
* infrun.h (debug_infrun): Make a bool.
|
||||||
|
* infrun.c (debug_infrun): Make a bool.
|
||||||
|
(_initialize_infrun): Use add_setshow_boolean_cmd to define "set
|
||||||
|
debug infrun".
|
||||||
|
|
||||||
2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
|
2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
* displaced-stepping.h (displaced_debug_printf): Use
|
* displaced-stepping.h (displaced_debug_printf): Use
|
||||||
|
15
gdb/infrun.c
15
gdb/infrun.c
@ -153,7 +153,7 @@ static ptid_t previous_inferior_ptid;
|
|||||||
|
|
||||||
static bool detach_fork = true;
|
static bool detach_fork = true;
|
||||||
|
|
||||||
unsigned int debug_infrun = 0;
|
bool debug_infrun = false;
|
||||||
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)
|
||||||
@ -9214,13 +9214,12 @@ 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_zuinteger_cmd ("infrun", class_maintenance, &debug_infrun, _("\
|
add_setshow_boolean_cmd
|
||||||
Set inferior debugging."), _("\
|
("infrun", class_maintenance, &debug_infrun,
|
||||||
Show inferior debugging."), _("\
|
_("Set inferior debugging."),
|
||||||
When non-zero, inferior specific debugging is enabled."),
|
_("Show inferior debugging."),
|
||||||
NULL,
|
_("When non-zero, inferior specific debugging is enabled."),
|
||||||
show_debug_infrun,
|
NULL, show_debug_infrun, &setdebuglist, &showdebuglist);
|
||||||
&setdebuglist, &showdebuglist);
|
|
||||||
|
|
||||||
add_setshow_boolean_cmd ("non-stop", no_class,
|
add_setshow_boolean_cmd ("non-stop", no_class,
|
||||||
&non_stop_1, _("\
|
&non_stop_1, _("\
|
||||||
|
@ -29,7 +29,7 @@ struct process_stratum_target;
|
|||||||
struct thread_info;
|
struct thread_info;
|
||||||
|
|
||||||
/* True if we are debugging run control. */
|
/* True if we are debugging run control. */
|
||||||
extern unsigned int debug_infrun;
|
extern bool debug_infrun;
|
||||||
|
|
||||||
/* Print an "infrun" debug statement. */
|
/* Print an "infrun" debug statement. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user