diff options
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 2 |
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) |