From 2e362716fc7df641de0405dbef16a52be5dea2d1 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Mon, 16 Nov 2020 16:12:44 +0000 Subject: gdb: convert some function arguments from int to bool A little int to bool conversion around the 'watch' type commands. There should be no user visible changes after this commit. gdb/ChangeLog: * breakpoint.c (update_watchpoint): Pass 'false' not '0'. (watch_command_1): Update parameter types. Convert locals to bool. (watch_command_wrapper): Change parameter type. (watch_maybe_just_location): Change locals to bool. (rwatch_command_wrapper): Update parameter type. (awatch_command_wrapper): Update parameter type. * breakpoint.h (watch_command_wrapper): Change parameter type. (rwatch_command_wrapper): Update parameter type. (awatch_command_wrapper): Update parameter type. * eval.c (fetch_subexp_value): Change parameter type. * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass 'false' not '0'. * value.h (fetch_subexp_value): Change parameter type in declaration. --- gdb/mi/mi-cmd-break.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c index 3835c02..ed311a6 100644 --- a/gdb/mi/mi-cmd-break.c +++ b/gdb/mi/mi-cmd-break.c @@ -463,13 +463,13 @@ mi_cmd_break_watch (const char *command, char **argv, int argc) switch (type) { case REG_WP: - watch_command_wrapper (expr, FROM_TTY, 0); + watch_command_wrapper (expr, FROM_TTY, false); break; case READ_WP: - rwatch_command_wrapper (expr, FROM_TTY, 0); + rwatch_command_wrapper (expr, FROM_TTY, false); break; case ACCESS_WP: - awatch_command_wrapper (expr, FROM_TTY, 0); + awatch_command_wrapper (expr, FROM_TTY, false); break; default: error (_("-break-watch: Unknown watchpoint type.")); -- cgit v1.1