aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/sparc
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1997-10-15 19:07:30 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1997-10-15 19:07:30 +0000
commit223f2ecd9aa0a17c72d012e239e73f62a117ed17 (patch)
treefd961573e4faa7b254032d60b92b2855b134f0a9 /gdb/config/sparc
parenta12e6215485096316c295ae93491d061045a5948 (diff)
downloadgdb-223f2ecd9aa0a17c72d012e239e73f62a117ed17.zip
gdb-223f2ecd9aa0a17c72d012e239e73f62a117ed17.tar.gz
gdb-223f2ecd9aa0a17c72d012e239e73f62a117ed17.tar.bz2
(STORE_STRUCT_RETURN): Change to handle --enable-64-bit-bfd.
Diffstat (limited to 'gdb/config/sparc')
-rw-r--r--gdb/config/sparc/tm-sparc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h
index 1e74e4d..2bbda58 100644
--- a/gdb/config/sparc/tm-sparc.h
+++ b/gdb/config/sparc/tm-sparc.h
@@ -248,7 +248,9 @@ extern CORE_ADDR sparc_pc_adjust PARAMS ((CORE_ADDR));
subroutine will return. This is called from call_function. */
#define STORE_STRUCT_RETURN(ADDR, SP) \
- { target_write_memory ((SP)+(16*4), (char *)&(ADDR), 4); }
+ { char val[4]; \
+ store_unsigned_integer (val, 4, (ADDR)); \
+ write_memory ((SP)+(16*4), val, 4); }
/* Extract from an array REGBUF containing the (raw) register state
a function return value of type TYPE, and copy that, in virtual format,