From 719546c44f5777a3902a2f913c70fd15b942461d Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 3 Feb 2020 23:02:28 -0500 Subject: Change ints to bools around thread_info executing/resumed Switch thread_info::resumed to bool (thread_info::executing already is a bool), and try to change everything more or less related to that to consistently use true/false instead of 1/0. gdb/ChangeLog: * fork-child.c (gdb_startup_inferior): Use bool instead of int. * gdbthread.h (class thread_info) : Likewise. * infrun.c (resume_1): Likewise. (proceed): Likewise. (infrun_thread_stop_requested): Likewise. (stop_all_threads): Likewise. (handle_inferior_event): Likewise. (restart_threads): Likewise. (finish_step_over): Likewise. (keep_going_stepped_thread): Likewise. * linux-nat.c (attach_proc_task_lwp_callback): Likewise. (linux_handle_extended_wait): Likewise. * record-btrace.c (get_thread_current_frame_id): Likewise. * record-full.c (record_full_wait_1): Likewise. * remote.c (remote_target::process_initial_stop_replies): Likewise. * target.c (target_resume): Likewise. * thread.c (set_running_thread): Likewise. --- gdb/target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index b24d3d8..470ef51 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -2127,7 +2127,7 @@ target_resume (ptid_t ptid, int step, enum gdb_signal signal) /* We only set the internal executing state here. The user/frontend running state is set at a higher level. This also clears the thread's stop_pc as side effect. */ - set_executing (curr_target, ptid, 1); + set_executing (curr_target, ptid, true); clear_inline_frame_state (curr_target, ptid); } -- cgit v1.1