static int command_nest_depth = 1;
/* This is to prevent certain commands being printed twice. */
-static int suppress_next_print_command_trace = 0;
+static bool suppress_next_print_command_trace = false;
/* Command element for the 'while' command. */
static cmd_list_element *while_cmd_element = nullptr;
command_nest_depth = 1;
/* Just in case. */
- suppress_next_print_command_trace = 0;
+ suppress_next_print_command_trace = false;
}
/* Print the command, prefixed with '+' to represent the call depth.
if (suppress_next_print_command_trace)
{
- suppress_next_print_command_trace = 0;
+ suppress_next_print_command_trace = false;
return;
}
enum command_control_type
execute_control_command_untraced (struct command_line *cmd)
{
- suppress_next_print_command_trace = 1;
+ suppress_next_print_command_trace = true;
return execute_control_command (cmd);
}