Change ints to bools around thread_info executing/resumed
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 4 Feb 2020 04:02:28 +0000 (23:02 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 4 Feb 2020 04:06:55 +0000 (23:06 -0500)
commit719546c44f5777a3902a2f913c70fd15b942461d
tree6f4b7f34edaa5acdba52295cfaec610404bdc2e3
parentc5d7be0c97a75ff20b49d57bff078360464125fb
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) <resumed>: 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/ChangeLog
gdb/fork-child.c
gdb/gdbthread.h
gdb/infrun.c
gdb/linux-nat.c
gdb/record-btrace.c
gdb/record-full.c
gdb/remote.c
gdb/target.c
gdb/thread.c
This page took 0.026003 seconds and 4 git commands to generate.