diff options
author | Michael Snyder <msnyder@vmware.com> | 2003-11-25 22:15:24 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2003-11-25 22:15:24 +0000 |
commit | 78c63a3b6fa8ef422b732bbeb650390f1a5a0728 (patch) | |
tree | f0f17d0fffee0843265e30bc288e825f15517606 /gdb | |
parent | f93464114f6f05b754787b39a173ca76b579b536 (diff) | |
download | gdb-78c63a3b6fa8ef422b732bbeb650390f1a5a0728.zip gdb-78c63a3b6fa8ef422b732bbeb650390f1a5a0728.tar.gz gdb-78c63a3b6fa8ef422b732bbeb650390f1a5a0728.tar.bz2 |
2003-11-25 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_o64_extract_return_value): Correct for
NUM_REGS (see changes 2003-06-21).
(mips_eabi_extract_return_value): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 79a4df9..4356b14 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-11-25 Michael Snyder <msnyder@redhat.com> + + * mips-tdep.c (mips_o64_extract_return_value): Correct for + NUM_REGS (see changes 2003-06-21). + (mips_eabi_extract_return_value): Ditto. + 2003-11-25 Andrew Cagney <cagney@redhat.com> * infrun.c: Don't include "exec.h". diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 1088cda..2c3e8c2 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -4696,12 +4696,12 @@ mips_eabi_extract_return_value (struct type *valtype, return_value_location (valtype, &hi, &lo); memcpy (valbuf + lo.buf_offset, - regbuf + DEPRECATED_REGISTER_BYTE (lo.reg) + lo.reg_offset, + regbuf + DEPRECATED_REGISTER_BYTE (NUM_REGS + lo.reg) + lo.reg_offset, lo.len); if (hi.len > 0) memcpy (valbuf + hi.buf_offset, - regbuf + DEPRECATED_REGISTER_BYTE (hi.reg) + hi.reg_offset, + regbuf + DEPRECATED_REGISTER_BYTE (NUM_REGS + hi.reg) + hi.reg_offset, hi.len); } @@ -4715,12 +4715,12 @@ mips_o64_extract_return_value (struct type *valtype, return_value_location (valtype, &hi, &lo); memcpy (valbuf + lo.buf_offset, - regbuf + DEPRECATED_REGISTER_BYTE (lo.reg) + lo.reg_offset, + regbuf + DEPRECATED_REGISTER_BYTE (NUM_REGS + lo.reg) + lo.reg_offset, lo.len); if (hi.len > 0) memcpy (valbuf + hi.buf_offset, - regbuf + DEPRECATED_REGISTER_BYTE (hi.reg) + hi.reg_offset, + regbuf + DEPRECATED_REGISTER_BYTE (NUM_REGS + hi.reg) + hi.reg_offset, hi.len); } |