aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-11-23 02:48:40 +0000
committerAndrew Cagney <cagney@redhat.com>2003-11-23 02:48:40 +0000
commit213cc0adce5744bfcc60c72833efa76338580f8c (patch)
tree215335f471fbd826ebea805b08bfb13a93ffd023 /gdb/frame.c
parent436d9e46434ecc4ee860265c8f7f8c11bcb9904f (diff)
downloadgdb-213cc0adce5744bfcc60c72833efa76338580f8c.zip
gdb-213cc0adce5744bfcc60c72833efa76338580f8c.tar.gz
gdb-213cc0adce5744bfcc60c72833efa76338580f8c.tar.bz2
2003-11-22 Andrew Cagney <cagney@redhat.com>
* frame.c (deprecated_frame_xmalloc): Delete function. (deprecated_set_frame_extra_info_hack): Delete function. (deprecated_set_frame_saved_regs_hack): Delete function. * frame.h (deprecated_frame_xmalloc): Delete declaration. (deprecated_set_frame_extra_info_hack): Delete declaration. (deprecated_set_frame_saved_regs_hack): Delete declaration. * mcore-tdep.c (analyze_dummy_frame): Instead of deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack, and deprecated_set_frame_extra_info_hack use deprecated_frame_xmalloc_with_cleanup. * mn10300-tdep.c (analyze_dummy_frame): Ditto. * mips-tdep.c (mips_init_extra_frame_info): Delete call to deprecated_set_frame_saved_regs_hack.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 1b3d9bc..7f4c8aa 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -2223,34 +2223,13 @@ deprecated_update_frame_base_hack (struct frame_info *frame, CORE_ADDR base)
frame->this_id.value.stack_addr = base;
}
-void
-deprecated_set_frame_saved_regs_hack (struct frame_info *frame,
- CORE_ADDR *saved_regs)
-{
- frame->saved_regs = saved_regs;
-}
-
-void
-deprecated_set_frame_extra_info_hack (struct frame_info *frame,
- struct frame_extra_info *extra_info)
-{
- frame->extra_info = extra_info;
-}
-
struct frame_info *
-deprecated_frame_xmalloc (void)
+deprecated_frame_xmalloc_with_cleanup (long sizeof_saved_regs,
+ long sizeof_extra_info)
{
struct frame_info *frame = XMALLOC (struct frame_info);
memset (frame, 0, sizeof (*frame));
frame->this_id.p = 1;
- return frame;
-}
-
-struct frame_info *
-deprecated_frame_xmalloc_with_cleanup (long sizeof_saved_regs,
- long sizeof_extra_info)
-{
- struct frame_info *frame = deprecated_frame_xmalloc ();
make_cleanup (xfree, frame);
if (sizeof_saved_regs > 0)
{