Propagate result of cpu_session::state call

State may fail, don't just return just true.
This commit is contained in:
Alexander Boettcher 2012-08-21 11:31:36 +02:00 committed by Norman Feske
parent 0d03a91b80
commit 7595823146
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}