diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-12-11 14:02:52 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-12-11 14:02:52 -0500 |
commit | 94ba44a68dccb5fa2a0a40a52efebdd1faeae43d (patch) | |
tree | bb4178d227e8cf249092ed9e4307c1495b767c16 /gdb/infrun.c | |
parent | 74b773fcd658c52554a6af07c657f677c52f8102 (diff) | |
download | gdb-94ba44a68dccb5fa2a0a40a52efebdd1faeae43d.zip gdb-94ba44a68dccb5fa2a0a40a52efebdd1faeae43d.tar.gz gdb-94ba44a68dccb5fa2a0a40a52efebdd1faeae43d.tar.bz2 |
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
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 793a7d2..f509481 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -153,7 +153,7 @@ static ptid_t previous_inferior_ptid; 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) @@ -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\ 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, _("\ |