aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-22 20:08:53 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-22 20:08:53 +0000
commit777bef06cd075ee4031187fe28381d5d5edd4f94 (patch)
tree0ca9c4eaec086bb1a36e3ae9a7f6f29757612ca7 /gdb/infcmd.c
parentfcb887ffcd896af0b53c7ac8808bfeed54b321e8 (diff)
downloadfsf-binutils-gdb-777bef06cd075ee4031187fe28381d5d5edd4f94.zip
fsf-binutils-gdb-777bef06cd075ee4031187fe28381d5d5edd4f94.tar.gz
fsf-binutils-gdb-777bef06cd075ee4031187fe28381d5d5edd4f94.tar.bz2
Check for NULL selected_frame in various places.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 25883a0..2ebfb0b 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -529,6 +529,8 @@ finish_command (arg, from_tty)
error ("The \"finish\" command does not take any arguments.");
if (!target_has_execution)
error ("The program is not running.");
+ if (selected_frame == NULL)
+ error ("No selected frame.");
frame = get_prev_frame (selected_frame);
if (frame == 0)