diff options
author | Jeff Law <law@redhat.com> | 1998-07-27 14:55:51 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1998-07-27 14:55:51 +0000 |
commit | b5b59a3c3cb23c6bee974caaa19b29a11308d163 (patch) | |
tree | d536bda80fc04571fb0225713cc31ab468aab49e | |
parent | 60f9cd07d07b5b540eb3e4e0b72105911774107c (diff) | |
download | gdb-b5b59a3c3cb23c6bee974caaa19b29a11308d163.zip gdb-b5b59a3c3cb23c6bee974caaa19b29a11308d163.tar.gz gdb-b5b59a3c3cb23c6bee974caaa19b29a11308d163.tar.bz2 |
* mn10300-tdep.c (mn10300_frame_chain): Account for space saved
by am33 register saves.
(mn10300_frame_saved_pc): Similarly.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/mn10300-tdep.c | 14 |
2 files changed, 21 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d527b80..c7f6c63 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 <msnyder@cleaver.cygnus.com> * tracepoint.c (encode_actions): Treat register names and simple diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index 6826713..8b0c7ed 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)); } |