* config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
authorMark Alexander <marka@cygnus>
Fri, 24 Jul 1998 20:44:47 +0000 (20:44 +0000)
committerMark Alexander <marka@cygnus>
Fri, 24 Jul 1998 20:44:47 +0000 (20:44 +0000)
work on hosts of any endianness.
* config/i386/tm-i386v.h: Ditto.

gdb/ChangeLog
gdb/config/i386/tm-i386v.h

index 12caaa579221888ffddc34edf3eb917c3dc30317..f24f6ed027202a9db8a3cfe211ae47530ff47d38 100644 (file)
@@ -2,6 +2,7 @@ Fri Jul 24 13:32:46 1998  Mark Alexander  <marka@cygnus.com>
 
        * config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
        work on hosts of any endianness.
+       * config/i386/tm-i386v.h: Ditto.
 
 Fri Jul 24 07:41:12 1998  Mark Alexander  <marka@cygnus.com>
 
index 235558b78cc13d9fe95adee01cbc5b374d8613b5..bb31cb0c796b7edc7fa12e4fddfcbafabbf97172 100644 (file)
@@ -100,8 +100,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #undef  STORE_STRUCT_RETURN
 #define STORE_STRUCT_RETURN(ADDR, SP) \
-  { (SP) -= sizeof (ADDR);             \
-    write_memory ((SP), (char *) &(ADDR), sizeof (ADDR)); }
+  { char buf[REGISTER_SIZE];   \
+    (SP) -= sizeof (ADDR);     \
+    store_address (buf, sizeof (ADDR), ADDR);  \
+    write_memory ((SP), buf, sizeof (ADDR)); }
 
 /* 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.02954 seconds and 4 git commands to generate.