diff options
author | David S. Miller <davem@redhat.com> | 2006-04-05 20:01:19 +0000 |
---|---|---|
committer | David S. Miller <davem@redhat.com> | 2006-04-05 20:01:19 +0000 |
commit | aff37fc18f86e6a07749f9243124fb126b3330c2 (patch) | |
tree | cdde0f3fd196ff430e487e9b2882eea9b1d5ef15 /gdb/sparc64-tdep.c | |
parent | 0781db9f1005afbda29c49f5cb3ef85d7c799db0 (diff) | |
download | gdb-aff37fc18f86e6a07749f9243124fb126b3330c2.zip gdb-aff37fc18f86e6a07749f9243124fb126b3330c2.tar.gz gdb-aff37fc18f86e6a07749f9243124fb126b3330c2.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/sparc64-tdep.c')
-rw-r--r-- | gdb/sparc64-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c index d098bf9..ab6dfab 100644 --- a/gdb/sparc64-tdep.c +++ b/gdb/sparc64-tdep.c @@ -1106,7 +1106,8 @@ sparc64_return_value (struct gdbarch *gdbarch, struct type *type, static void sparc64_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum, - struct dwarf2_frame_state_reg *reg) + struct dwarf2_frame_state_reg *reg, + struct frame_info *next_frame) { switch (regnum) { |