forked from Imagelibrary/binutils-gdb
Use "bool" in fetch_inferior_event
A while back I noticed that fetch_inferior_event used "int" for should_stop, whereas it can be bool. The method it is assigned from: should_stop = thread_fsm->should_stop (thr); ... already returns bool. Tested by rebuilding. gdb/ChangeLog 2020-11-14 Tom Tromey <tom@tromey.com> * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2020-11-14 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* infrun.c (fetch_inferior_event): Use "bool" for should_stop.
|
||||
|
||||
2020-11-14 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* opencl-lang.c (opencl_component_ref): Make "comps" const.
|
||||
|
||||
@@ -3914,7 +3914,7 @@ fetch_inferior_event ()
|
||||
if (!ecs->wait_some_more)
|
||||
{
|
||||
struct inferior *inf = find_inferior_ptid (ecs->target, ecs->ptid);
|
||||
int should_stop = 1;
|
||||
bool should_stop = true;
|
||||
struct thread_info *thr = ecs->event_thread;
|
||||
|
||||
delete_just_stopped_threads_infrun_breakpoints ();
|
||||
|
||||
Reference in New Issue
Block a user