aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-08-16 23:51:14 +0000
committerPedro Alves <palves@redhat.com>2008-08-16 23:51:14 +0000
commit0d6431e2551df9cc004817a09f19a752b959ec66 (patch)
tree71e1c0a97457866e71dedd9d5692d5e36ffd14da /gdb/stack.c
parent8931f5261f2cc200cbaa534d82b3199ac8e4dbdb (diff)
downloadgdb-0d6431e2551df9cc004817a09f19a752b959ec66.zip
gdb-0d6431e2551df9cc004817a09f19a752b959ec66.tar.gz
gdb-0d6431e2551df9cc004817a09f19a752b959ec66.tar.bz2
* 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.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 18c4298..ca39d48 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -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;