From: Jeff Law Date: Mon, 27 Jul 1998 14:55:51 +0000 (+0000) Subject: * mn10300-tdep.c (mn10300_frame_chain): Account for space saved X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5b59a3c3cb23c6bee974caaa19b29a11308d163;p=binutils-gdb.git * mn10300-tdep.c (mn10300_frame_chain): Account for space saved by am33 register saves. (mn10300_frame_saved_pc): Similarly. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d527b8046d1..c7f6c63eff7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +start-sanitize-am33 +Mon Jul 27 08:54:41 1998 Jeffrey A Law (law@cygnus.com) + + * mn10300-tdep.c (mn10300_frame_chain): Account for space saved + by am33 register saves. + (mn10300_frame_saved_pc): Similarly. + +end-sanitize-am33 Fri Jul 24 14:41:19 1998 Michael Snyder * tracepoint.c (encode_actions): Treat register names and simple diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index 682671337d1..8b0c7ed6ab8 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -1,5 +1,5 @@ /* Target-dependent code for the Matsushita MN10300 for GDB, the GNU debugger. - Copyright 1996, 1997 Free Software Foundation, Inc. + Copyright 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of GDB. @@ -408,6 +408,12 @@ mn10300_frame_chain (fi) adjust += (fi->fsr.regs[3] ? 4 : 0); adjust += (fi->fsr.regs[6] ? 4 : 0); adjust += (fi->fsr.regs[7] ? 4 : 0); + /* start-sanitize-am33 */ + adjust += (fi->fsr.regs[E0_REGNUM+5] ? 4 : 0); + adjust += (fi->fsr.regs[E0_REGNUM+4] ? 4 : 0); + adjust += (fi->fsr.regs[E0_REGNUM+3] ? 4 : 0); + adjust += (fi->fsr.regs[E0_REGNUM+2] ? 4 : 0); + /* end-sanitize-am33 */ /* Our caller does not have a frame pointer. So his frame starts at the base of our frame (fi->frame) + register save space. */ @@ -597,6 +603,12 @@ mn10300_frame_saved_pc (fi) adjust += (fi->fsr.regs[3] ? 4 : 0); adjust += (fi->fsr.regs[6] ? 4 : 0); adjust += (fi->fsr.regs[7] ? 4 : 0); + /* start-sanitize-am33 */ + adjust += (fi->fsr.regs[E0_REGNUM+5] ? 4 : 0); + adjust += (fi->fsr.regs[E0_REGNUM+4] ? 4 : 0); + adjust += (fi->fsr.regs[E0_REGNUM+3] ? 4 : 0); + adjust += (fi->fsr.regs[E0_REGNUM+2] ? 4 : 0); + /* end-sanitize-am33 */ return (read_memory_integer (fi->frame + adjust, REGISTER_SIZE)); }