mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-21 03:25:34 +00:00
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;
|
||||
|
||||
csc->state(csc->thread_cap(ptid.lwp), &thread_state);
|
||||
|
||||
return true;
|
||||
return !csc->state(csc->thread_cap(ptid.lwp), &thread_state);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user