aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-02-29 07:17:15 +0000
committerAndrew Cagney <cagney@redhat.com>2000-02-29 07:17:15 +0000
commitd082b2bb9259bf3063b43a9dd7e33188172627e4 (patch)
tree5a5f355ec67292c51b8fed903481ad481d662bf3 /gdb/infrun.c
parent40d109bfbc1e7666dedf73f61ef7592c8d272e42 (diff)
downloadgdb-d082b2bb9259bf3063b43a9dd7e33188172627e4.zip
gdb-d082b2bb9259bf3063b43a9dd7e33188172627e4.tar.gz
gdb-d082b2bb9259bf3063b43a9dd7e33188172627e4.tar.bz2
Add more checks for no stack frame.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 2a3a1c8..96a659e 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3429,7 +3429,8 @@ The same program may be running in another process.\n");
bpstat_print() contains the logic deciding in detail
what to print, based on the event(s) that just occurred. */
- if (stop_print_frame)
+ if (stop_print_frame
+ && selected_frame)
{
int bpstat_ret;
int source_flag;