aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/mn10300
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-04-25 06:14:15 +0000
committerJeff Law <law@redhat.com>1997-04-25 06:14:15 +0000
commit157d3d5daab0768832a870ea14c512484f90f46b (patch)
treea56ec4faa7619241ade97104d629d887a24a5a2e /gdb/config/mn10300
parentbbec63ce2be97bc43eb4f689e870efe12a9d9ced (diff)
downloadgdb-157d3d5daab0768832a870ea14c512484f90f46b.zip
gdb-157d3d5daab0768832a870ea14c512484f90f46b.tar.gz
gdb-157d3d5daab0768832a870ea14c512484f90f46b.tar.bz2
* config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS): The
structure value address is found in $a0 now. * config/mn10200/tm-mn10200.h (EXTRACT_STRUCT_VALUE_ADDRESS): Likewise. Fixes some struct.exp failures.
Diffstat (limited to 'gdb/config/mn10300')
-rw-r--r--gdb/config/mn10300/tm-mn10300.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/config/mn10300/tm-mn10300.h b/gdb/config/mn10300/tm-mn10300.h
index d7b06b6..72dcd52 100644
--- a/gdb/config/mn10300/tm-mn10300.h
+++ b/gdb/config/mn10300/tm-mn10300.h
@@ -104,8 +104,8 @@ extern CORE_ADDR mn10300_frame_saved_pc PARAMS ((struct frame_info *));
#define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) \
- extract_address (REGBUF + REGISTER_BYTE (0), \
- REGISTER_RAW_SIZE (0))
+ extract_address (REGBUF + REGISTER_BYTE (4), \
+ REGISTER_RAW_SIZE (4))
#define STORE_RETURN_VALUE(TYPE, VALBUF) \
if (TYPE_CODE (TYPE) == TYPE_CODE_PTR) \