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 | 7cc19214aa83761f61b42a8eed01732d39495972 (patch) | |
tree | 6855c224bd10e273e3742910687fe47f7624c0d8 /gdb/blockframe.c | |
parent | 67a2b77effae04a5f6c050fd191149c26deb8a82 (diff) | |
download | gdb-7cc19214aa83761f61b42a8eed01732d39495972.zip gdb-7cc19214aa83761f61b42a8eed01732d39495972.tar.gz gdb-7cc19214aa83761f61b42a8eed01732d39495972.tar.bz2 |
* 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 8626ede..49bda4a 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 |