summaryrefslogtreecommitdiffstats
path: root/gdb/infrun.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/infrun.c
parentfcb887ffcd896af0b53c7ac8808bfeed54b321e8 (diff)
downloadppe42-binutils-777bef06cd075ee4031187fe28381d5d5edd4f94.tar.gz
ppe42-binutils-777bef06cd075ee4031187fe28381d5d5edd4f94.zip
Check for NULL selected_frame in various places.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index ac15f37d10..0c3a3e80e9 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1605,6 +1605,8 @@ restore_inferior_status (inf_status)
fid = find_relative_frame (get_current_frame (),
&level);
+ /* If inf_status->selected_frame_address is NULL, there was no
+ previously selected frame. */
if (fid == 0 ||
FRAME_FP (fid) != inf_status->selected_frame_address ||
level != 0)
OpenPOWER on IntegriCloud