aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-02 03:36:24 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-02 03:36:24 +0000
commita81dcb0537c784568efe7448b9d04b1d6b2673dd (patch)
treed3afdcda3543632589d8fde913ef8d4bf88f808c /gdb/frame.h
parent8d394f983f6278244b32a2e224c55d521f61ae9f (diff)
downloadgdb-a81dcb0537c784568efe7448b9d04b1d6b2673dd.zip
gdb-a81dcb0537c784568efe7448b9d04b1d6b2673dd.tar.gz
gdb-a81dcb0537c784568efe7448b9d04b1d6b2673dd.tar.bz2
2004-08-01 Andrew Cagney <cagney@gnu.org>
* frame.h (frame_save_as_regcache): Declare. * frame.c (frame_save_as_regcache): New function. (do_frame_read_register): Replace do_frame_unwind_register. (frame_pop): Use frame_save_as_regcache. * dummy-frame.c (generic_push_dummy_frame): Use frame_save_as_regcache.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index 347b27a..75b0c9e 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -518,6 +518,9 @@ extern void *frame_obstack_zalloc (unsigned long size);
#define FRAME_OBSTACK_ZALLOC(TYPE) ((TYPE *) frame_obstack_zalloc (sizeof (TYPE)))
#define FRAME_OBSTACK_CALLOC(NUMBER,TYPE) ((TYPE *) frame_obstack_zalloc ((NUMBER) * sizeof (TYPE)))
+/* Create a regcache, and copy the frame's registers into it. */
+struct regcache *frame_save_as_regcache (struct frame_info *this_frame);
+
extern void generic_save_dummy_frame_tos (CORE_ADDR sp);
extern struct block *get_frame_block (struct frame_info *,