summaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-12-13 23:18:56 +0000
committerAndrew Cagney <cagney@redhat.com>2002-12-13 23:18:56 +0000
commit2446006ad883946d9e8aa040c9c2c02815e7f0d8 (patch)
treef1ff97ec1ee107f880d2905fee0d77ff5e8c7bb9 /gdb/frame.h
parentdad6e24aa20c480edb4d4523e3de050ea0024a45 (diff)
downloadgdb-2446006ad883946d9e8aa040c9c2c02815e7f0d8.tar.gz
2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.h (get_frame_saved_regs): Declare. (frame_saved_regs_zalloc): Change return type to CORE_ADDR pointer. * frame.c (get_frame_saved_regs): New function. (frame_saved_regs_zalloc): Return the allocated saved_regs.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index f54f185ac9d..234c281d53b 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -473,7 +473,6 @@ enum print_what
(sizeof (CORE_ADDR) * (NUM_REGS+NUM_PSEUDO_REGS))
extern void *frame_obstack_alloc (unsigned long size);
-extern void frame_saved_regs_zalloc (struct frame_info *);
/* Define a default FRAME_CHAIN_VALID, in the form that is suitable for most
targets. If FRAME_CHAIN_VALID returns zero it means that the given frame
@@ -654,6 +653,13 @@ extern struct frame_extra_info *frame_extra_info_zalloc (struct frame_info *fi,
long size);
extern struct frame_extra_info *get_frame_extra_info (struct frame_info *fi);
+/* Create/access the frame's `saved_regs'. The saved regs are used by
+ older code to store the address of each register (except for
+ SP_REGNUM where the value of the register in the previous frame is
+ stored). */
+extern CORE_ADDR *frame_saved_regs_zalloc (struct frame_info *);
+extern CORE_ADDR *get_frame_saved_regs (struct frame_info *);
+
/* FIXME: cagney/2002-12-06: Has the PC in the current frame changed?
"infrun.c", Thanks to DECR_PC_AFTER_BREAK, can change the PC after
the initial frame create. This puts things back in sync. */