diff options
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 3c1019b22c1..392de10fce9 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1639,6 +1639,9 @@ get_selected_block (CORE_ADDR *addr_in_block) if (!target_has_stack) return 0; + if (ptid_equal (inferior_ptid, null_ptid)) + return 0; + if (is_exited (inferior_ptid)) return 0; |