From 8a82de5884386be4c10f16eb55a94993ac6ea858 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Fri, 7 May 2021 16:49:24 +0100 Subject: gdb: some int to bool conversion Change int parameter to bool in remote_notice_new_inferior (remote.c) and notice_new_inferior (infcmd.c), and update the callers. There should be no user visible changes after this commit. gdb/ChangeLog: * infcmd.c (notice_new_inferior): Change parameter type. * inferior.h (notice_new_inferior): Change parameter type. * remote.c (remote_notice_new_inferior): Change parameter type to bool. Also update type of local variable to bool. (remote_target::update_thread_list): Change type of local variable to bool. (remote_target::process_stop_reply): Pass bool instead of int to remote_notice_new_inferior. --- gdb/infcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 5d9d792..f0b044d 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -2675,7 +2675,7 @@ attach_command (const char *args, int from_tty) as stopped. */ void -notice_new_inferior (thread_info *thr, int leave_running, int from_tty) +notice_new_inferior (thread_info *thr, bool leave_running, int from_tty) { enum attach_post_wait_mode mode = leave_running ? ATTACH_POST_WAIT_RESUME : ATTACH_POST_WAIT_NOTHING; -- cgit v1.1