* 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:
parent
8931f5261f
commit
0d6431e255
5 changed files with 38 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue