diff options
author | Michael Snyder <msnyder@vmware.com> | 1997-01-28 23:55:28 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 1997-01-28 23:55:28 +0000 |
commit | b444216f2c5f842801fadf4515728d0327418ae3 (patch) | |
tree | 7bf3d2a3f8f9350ba2afa481861ca827e1a6627e | |
parent | 52c8eceee05c146e5252fa63455712c351238ff3 (diff) | |
download | gdb-b444216f2c5f842801fadf4515728d0327418ae3.zip gdb-b444216f2c5f842801fadf4515728d0327418ae3.tar.gz gdb-b444216f2c5f842801fadf4515728d0327418ae3.tar.bz2 |
* blockframe.c: fix a null pointer ref in generic_get_saved_register
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/blockframe.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 54209bc..a42970b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Tue Jan 28 15:54:13 1997 Michael Snyder <msnyder@cleaver.cygnus.com> + + * blockframe.c: fix a null pointer ref in generic_get_saved_register + Tue Jan 28 15:39:50 1997 Geoffrey Noer <noer@cygnus.com> * mn10200-tdep.c (mn10200_frame_chain): get basic backtracing diff --git a/gdb/blockframe.c b/gdb/blockframe.c index bcc9e0f..d10bdd3 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -1051,7 +1051,7 @@ generic_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval) the current frame itself: otherwise, we would be getting the previous frame's registers which were saved by the current frame. */ - while ((frame = frame->next) != NULL) + while (frame && ((frame = frame->next) != NULL)) { if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame)) { |