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: Use is_stopped, instead of !is_running


> 2008-07-29  Pedro Alves  <pedro@codesourcery.com>
> 
> 	* gdbthread.h: Add comments.
> 	* stack.c (get_selected_block): Return 0 on an exited thread.
> 	* top.c (execute_command): Check for is_stopped, not !is_running.
> 	* event-top.c (command_handler): Likewise.

Looks OK to me. It took me a while to decide that it was OK to leave
one instance inside inf-loop.c, but I think the !is_running there is OK.

-- 
Joel


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