mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
* config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
work on hosts of any endianness.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Fri Jul 24 07:41:12 1998 Mark Alexander <marka@cygnus.com>
|
Fri Jul 24 07:41:12 1998 Mark Alexander <marka@cygnus.com>
|
||||||
|
|
||||||
* mn10300-tdep.c (set_movm_offsets): New helper function
|
* mn10300-tdep.c (set_movm_offsets): New helper function
|
||||||
|
@ -158,8 +158,10 @@ extern int i386_skip_prologue PARAMS ((int));
|
|||||||
subroutine will return. This is called from call_function. */
|
subroutine will return. This is called from call_function. */
|
||||||
|
|
||||||
#define STORE_STRUCT_RETURN(ADDR, SP) \
|
#define STORE_STRUCT_RETURN(ADDR, SP) \
|
||||||
{ (SP) -= sizeof (ADDR); \
|
{ char buf[REGISTER_SIZE]; \
|
||||||
write_memory ((SP), (char *) &(ADDR), sizeof (ADDR)); }
|
(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
|
/* Extract from an array REGBUF containing the (raw) register state
|
||||||
a function return value of type TYPE, and copy that, in virtual format,
|
a function return value of type TYPE, and copy that, in virtual format,
|
||||||
|
Reference in New Issue
Block a user