* 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.
This commit is contained in:
Pedro Alves 2008-08-16 23:51:14 +00:00
parent 8931f5261f
commit 0d6431e255
5 changed files with 38 additions and 9 deletions

View file

@ -1644,6 +1644,9 @@ get_selected_block (CORE_ADDR *addr_in_block)
if (!target_has_stack)
return 0;
if (is_exited (inferior_ptid))
return 0;
if (is_executing (inferior_ptid))
return 0;