This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [MI non-stop 10/11] Skip varobj in running threads.


On Fri, Jul 11, 2008 at 02:56:39PM +0100, Pedro Alves wrote:
> You should reverse the logic, and do the update if the thread is_stopped
> instead of !is_running.  That is because there is now exited state
> to care for as well, and is_running also returns false on those.  Essentially,
> the is_STATE functions should not be tested with negation, if you're looking
> for a particular state.

Sounds like we need a big comment for that :-)

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]