Propagate result of cpu_session::state call
State may fail, don't just return just true.
This commit is contained in:
parent
0d03a91b80
commit
7595823146
|
@ -33,8 +33,6 @@ bool get_current_thread_state(Thread_state &thread_state)
|
||||||
|
|
||||||
ptid_t ptid = ((struct inferior_list_entry*)current_inferior)->id;
|
ptid_t ptid = ((struct inferior_list_entry*)current_inferior)->id;
|
||||||
|
|
||||||
csc->state(csc->thread_cap(ptid.lwp), &thread_state);
|
return !csc->state(csc->thread_cap(ptid.lwp), &thread_state);
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user