diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-04-10 22:14:02 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-04-10 22:14:02 +0000 |
commit | 506e63506006f4c0659363b4c89fe88b5d9e6e24 (patch) | |
tree | cf95fa9c0bb72de31a76d703965d3b0780091bed /gdb/blockframe.c | |
parent | f08f33a0224ab61f25712cf44d004ed9e631e0bf (diff) | |
download | gdb-506e63506006f4c0659363b4c89fe88b5d9e6e24.tar.gz |
* stack.c (select_frame): Check that selected_frame and the
specified level are as expected.
* blockframe.c (get_prev_frame): Set the `level' from next_frame.
Update copyright.
* frame.h (struct frame_info): Add field `level'. Update
copyright.
Work-in-progress PR gdb/464.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 8626ede70e9..49bda4a255a 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -1,7 +1,9 @@ -/* Get info from stack frames; - convert between frames, blocks, functions and pc values. - Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, - 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. +/* Get info from stack frames; convert between frames, blocks, + functions and pc values. + + Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, + 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software + Foundation, Inc. This file is part of GDB. @@ -393,6 +395,7 @@ get_prev_frame (struct frame_info *next_frame) next_frame->prev = prev; prev->next = next_frame; prev->frame = address; + prev->level = next_frame->level + 1; /* This change should not be needed, FIXME! We should determine whether any targets *need* INIT_FRAME_PC to happen |