From aff37fc18f86e6a07749f9243124fb126b3330c2 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 5 Apr 2006 20:01:19 +0000 Subject: * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame" argument. (dwarf2_frame_default_init_reg): Likewise. (dwarf2_frame_set_init_reg): Update init_reg arg. (dwarf2_frame_init_reg): Take "next_frame" and pass it to ops->init_reg(). (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg. * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration. * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg. * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise. * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise. * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise. * sparc-tdep.c (sparc32_struct_return_from_sym): New function. (sparc32_frame_cache): Call it. (sparc32_dwarf2_struct_return_p): New function. (sparc_dwarf2_frame_init_reg): Use it to determine if the function returns a structure and thus we have to indicate the return PC and NPC are 4 bytes later than usual. --- gdb/dwarf2-frame.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/dwarf2-frame.h') diff --git a/gdb/dwarf2-frame.h b/gdb/dwarf2-frame.h index 3194604..a4ad586 100644 --- a/gdb/dwarf2-frame.h +++ b/gdb/dwarf2-frame.h @@ -79,7 +79,8 @@ struct dwarf2_frame_state_reg extern void dwarf2_frame_set_init_reg (struct gdbarch *gdbarch, void (*init_reg) (struct gdbarch *, int, - struct dwarf2_frame_state_reg *)); + struct dwarf2_frame_state_reg *, + struct frame_info *)); /* Set the architecture-specific signal trampoline recognition function for GDBARCH to SIGNAL_FRAME_P. */ -- cgit v1.1