aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-04-09 20:49:22 +0000
committerAndrew Cagney <cagney@redhat.com>2003-04-09 20:49:22 +0000
commitd134026405b1149334d41bdbe81f96910843d4f6 (patch)
treeaba2e0fffd0f1ff04fbbbfd9cc296570d3f46d1c /gdb/frame.h
parentec1659c846e09371b2de488becf1f8042d10cc5b (diff)
downloadgdb-d134026405b1149334d41bdbe81f96910843d4f6.zip
gdb-d134026405b1149334d41bdbe81f96910843d4f6.tar.gz
gdb-d134026405b1149334d41bdbe81f96910843d4f6.tar.bz2
2003-04-09 Andrew Cagney <cagney@redhat.com>
* frame.h (struct frame_info): Delete field "pc". Replace "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc" structure. * frame.c (frame_pc_unwind): Update. (create_sentinel_frame): Do not set "pc". (get_prev_frame): Do not set "pc". Use frame_pc_unwind. (get_frame_pc): Call frame_pc_unwind. (deprecated_update_frame_pc_hack): Update. (create_new_frame): Use "pc" not "->pc".
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index a03e571..ec4c646 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -337,11 +337,6 @@ extern void frame_pop (struct frame_info *frame);
struct frame_info
{
- /* Address at which execution is occurring in this frame.
- For the innermost frame, it's the current pc.
- For other frames, it is a pc saved in the next frame. */
- CORE_ADDR pc;
-
/* Level of this frame. The inner-most (youngest) frame is at
level 0. As you move towards the outer-most (oldest) frame,
the level increases. This is a cached value. It could just as
@@ -389,8 +384,10 @@ struct frame_info
const struct frame_unwind *unwind;
/* Cached copy of the previous frame's resume address. */
- int pc_unwind_cache_p;
- CORE_ADDR pc_unwind_cache;
+ struct {
+ int p;
+ CORE_ADDR value;
+ } prev_pc;
/* Cached copy of the previous frame's function address. */
struct