[binutils-gdb] Boolify suppress_next_print_command_trace
Tom Tromey via Gdb-cvs <[email protected]> Thu, 18 Jun 2026 17:08:13 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b7d1fcd083ec26af60a3976c19852d2eae08e4c4 commit b7d1fcd083ec26af60a3976c19852d2eae08e4c4 Author: Tom Tromey <[email protected]> Date: Tue Jun 2 11:26:12 2026 -0600 Boolify suppress_next_print_command_trace This changes suppress_next_print_command_trace to use bool. Diff: --- gdb/cli/cli-script.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index e081f0454b3..b8312f431cb 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -62,7 +62,7 @@ static int control_level; 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; @@ -471,7 +471,7 @@ reset_command_nest_depth (void) 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. @@ -490,7 +490,7 @@ print_command_trace (const char *fmt, ...) if (suppress_next_print_command_trace) { - suppress_next_print_command_trace = 0; + suppress_next_print_command_trace = false; return; } @@ -720,7 +720,7 @@ execute_control_command (struct command_line *cmd, int from_tty) 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); }