aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/mn10200
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-02-11 22:40:54 +0000
committerJeff Law <law@redhat.com>1997-02-11 22:40:54 +0000
commit527579ee7bb4347c9a076dd5ebba08703fa8dd91 (patch)
tree5fd6e62dca98247733878ffea0acdb72e1f5ee2b /gdb/config/mn10200
parent28ddd87e570d35db09c4fe052c313d595de9d220 (diff)
downloadgdb-527579ee7bb4347c9a076dd5ebba08703fa8dd91.zip
gdb-527579ee7bb4347c9a076dd5ebba08703fa8dd91.tar.gz
gdb-527579ee7bb4347c9a076dd5ebba08703fa8dd91.tar.bz2
* config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE): Fix case when
extracting a return value from a register pair. Fixes remaining failures in callfuncs.exp, but not structs.exp.
Diffstat (limited to 'gdb/config/mn10200')
-rw-r--r--gdb/config/mn10200/tm-mn10200.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/config/mn10200/tm-mn10200.h b/gdb/config/mn10200/tm-mn10200.h
index a509c8e..aed0a6e 100644
--- a/gdb/config/mn10200/tm-mn10200.h
+++ b/gdb/config/mn10200/tm-mn10200.h
@@ -127,7 +127,7 @@ extern CORE_ADDR mn10200_frame_saved_pc PARAMS ((struct frame_info *));
else if (TYPE_LENGTH (TYPE) > 2 && TYPE_CODE (TYPE) != TYPE_CODE_PTR) \
{ \
memcpy (VALBUF, REGBUF + REGISTER_BYTE (0), 2); \
- memcpy (VALBUF, REGBUF + REGISTER_BYTE (1), 2); \
+ memcpy (VALBUF + 2, REGBUF + REGISTER_BYTE (1), 2); \
} \
else \
{ \