aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
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;