(STORE_STRUCT_RETURN): Change to handle --enable-64-bit-bfd.
authorDavid Edelsohn <dje.gcc@gmail.com>
Wed, 15 Oct 1997 19:07:30 +0000 (19:07 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Wed, 15 Oct 1997 19:07:30 +0000 (19:07 +0000)
gdb/config/sparc/tm-sparc.h

index 1e74e4d3380c7ff4d470c493a0cebf334f3a05ce..2bbda589d8a160cf6348263810f461ca5bdfeffc 100644 (file)
@@ -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,
This page took 0.025735 seconds and 4 git commands to generate.