diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-12-09 01:40:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-12-09 01:40:25 +0000 |
commit | 8b36eed86d2784688816eb8bf25bf50b188e2c23 (patch) | |
tree | 420fe9c2a3b4086dcadf43cc960542b4bc2491d1 /gdb/blockframe.c | |
parent | aeeccc89cabdc8a3f88dd4b7192af4cd78ec7571 (diff) | |
download | gdb-8b36eed86d2784688816eb8bf25bf50b188e2c23.zip gdb-8b36eed86d2784688816eb8bf25bf50b188e2c23.tar.gz gdb-8b36eed86d2784688816eb8bf25bf50b188e2c23.tar.bz2 |
2002-12-08 Andrew Cagney <ac131313@redhat.com>
* blockframe.c: Use get_frame_base instead of directly accessing
the `struct frame_info' member frame.
* f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
* stack.c, dummy-frame.c, breakpoint.c: Ditto.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index caaecd4..d7a25c9 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -701,7 +701,8 @@ generic_file_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi) return 1; /* don't prune CALL_DUMMY frames */ else /* fall back to default algorithm (see frame.h) */ return (fp != 0 - && (INNER_THAN (fi->frame, fp) || fi->frame == fp) + && (INNER_THAN (get_frame_base (fi), fp) + || get_frame_base (fi) == fp) && !inside_entry_file (frame_pc_unwind (fi))); } @@ -713,7 +714,8 @@ generic_func_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi) return 1; /* don't prune CALL_DUMMY frames */ else /* fall back to default algorithm (see frame.h) */ return (fp != 0 - && (INNER_THAN (fi->frame, fp) || fi->frame == fp) + && (INNER_THAN (get_frame_base (fi), fp) + || get_frame_base (fi) == fp) && !inside_main_func ((fi)->pc) && !inside_entry_func ((fi)->pc)); } |