diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-08-02 03:36:24 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-08-02 03:36:24 +0000 |
commit | a81dcb0537c784568efe7448b9d04b1d6b2673dd (patch) | |
tree | d3afdcda3543632589d8fde913ef8d4bf88f808c /gdb/dummy-frame.c | |
parent | 8d394f983f6278244b32a2e224c55d521f61ae9f (diff) | |
download | gdb-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/dummy-frame.c')
-rw-r--r-- | gdb/dummy-frame.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index 635c835..d901214 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -161,12 +161,11 @@ generic_push_dummy_frame (void) dummy_frame = dummy_frame->next; dummy_frame = xmalloc (sizeof (struct dummy_frame)); - dummy_frame->regcache = regcache_xmalloc (current_gdbarch); + dummy_frame->regcache = frame_save_as_regcache (get_current_frame ()); dummy_frame->pc = read_pc (); dummy_frame->top = 0; dummy_frame->id = get_frame_id (get_current_frame ()); - regcache_cpy (dummy_frame->regcache, current_regcache); dummy_frame->next = dummy_frame_stack; dummy_frame_stack = dummy_frame; } |