+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>
* displaced-stepping.h (displaced_debug_printf): Use
static bool detach_fork = true;
-unsigned int debug_infrun = 0;
+bool debug_infrun = false;
static void
show_debug_infrun (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
This allows you to set a list of commands to be run each time execution\n\
of the program stops."), &cmdlist);
- add_setshow_zuinteger_cmd ("infrun", class_maintenance, &debug_infrun, _("\
-Set inferior debugging."), _("\
-Show inferior debugging."), _("\
-When non-zero, inferior specific debugging is enabled."),
- NULL,
- show_debug_infrun,
- &setdebuglist, &showdebuglist);
+ add_setshow_boolean_cmd
+ ("infrun", class_maintenance, &debug_infrun,
+ _("Set inferior debugging."),
+ _("Show inferior debugging."),
+ _("When non-zero, inferior specific debugging is enabled."),
+ NULL, show_debug_infrun, &setdebuglist, &showdebuglist);
add_setshow_boolean_cmd ("non-stop", no_class,
&non_stop_1, _("\