* config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME, POP_FRAME): Remove defines. (i386_push_arguments, i386_store_struct_return, i386_extract_return_value, i386_store_return_value, i386_extract_struct_value_address, i386_push_dummy_frame, i386_pop_frame): Renove prototypes. * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the macros mentioned above.
This commit is contained in:
parent
e707bbc264
commit
fc08ec527f
3 changed files with 22 additions and 50 deletions
|
@ -1,3 +1,16 @@
|
|||
2002-06-15 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
|
||||
DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
|
||||
DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
|
||||
POP_FRAME): Remove defines.
|
||||
(i386_push_arguments, i386_store_struct_return,
|
||||
i386_extract_return_value, i386_store_return_value,
|
||||
i386_extract_struct_value_address, i386_push_dummy_frame,
|
||||
i386_pop_frame): Renove prototypes.
|
||||
* i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
|
||||
macros mentioned above.
|
||||
|
||||
2002-06-15 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* cli/cli-decode.c (add_setshow_boolean_cmd): Replace
|
||||
|
|
|
@ -65,62 +65,12 @@ extern void i387_float_info (void);
|
|||
#define FLOAT_INFO { i387_float_info (); }
|
||||
|
||||
|
||||
#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \
|
||||
i386_push_arguments ((nargs), (args), (sp), (struct_return), (struct_addr))
|
||||
extern CORE_ADDR i386_push_arguments (int nargs, struct value **args,
|
||||
CORE_ADDR sp, int struct_return,
|
||||
CORE_ADDR struct_addr);
|
||||
|
||||
/* Store the address of the place in which to copy the structure the
|
||||
subroutine will return. This is called from call_function. */
|
||||
|
||||
#define STORE_STRUCT_RETURN(addr, sp) \
|
||||
i386_store_struct_return ((addr), (sp))
|
||||
extern void i386_store_struct_return (CORE_ADDR addr, CORE_ADDR sp);
|
||||
|
||||
/* Extract from an array REGBUF containing the (raw) register state
|
||||
a function return value of type TYPE, and copy that, in virtual format,
|
||||
into VALBUF. */
|
||||
|
||||
#define DEPRECATED_EXTRACT_RETURN_VALUE(type, regbuf, valbuf) \
|
||||
i386_extract_return_value ((type), (regbuf), (valbuf))
|
||||
extern void i386_extract_return_value (struct type *type, char *regbuf,
|
||||
char *valbuf);
|
||||
|
||||
/* Write into the appropriate registers a function return value stored
|
||||
in VALBUF of type TYPE, given in virtual format. */
|
||||
|
||||
#define STORE_RETURN_VALUE(type, valbuf) \
|
||||
i386_store_return_value ((type), (valbuf))
|
||||
extern void i386_store_return_value (struct type *type, char *valbuf);
|
||||
|
||||
/* Extract from an array REGBUF containing the (raw) register state
|
||||
the address in which a function should return its structure value,
|
||||
as a CORE_ADDR. */
|
||||
|
||||
#define DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS(regbuf) \
|
||||
i386_extract_struct_value_address ((regbuf))
|
||||
extern CORE_ADDR i386_extract_struct_value_address (char *regbuf);
|
||||
|
||||
|
||||
/* Things needed for making the inferior call functions. */
|
||||
|
||||
/* "An argument's size is increased, if necessary, to make it a
|
||||
multiple of [32 bit] words. This may require tail padding,
|
||||
depending on the size of the argument" - from the x86 ABI. */
|
||||
#define PARM_BOUNDARY 32
|
||||
|
||||
/* Push an empty stack frame, to record the current PC, etc. */
|
||||
|
||||
#define PUSH_DUMMY_FRAME { i386_push_dummy_frame (); }
|
||||
|
||||
extern void i386_push_dummy_frame (void);
|
||||
|
||||
/* Discard from the stack the innermost frame, restoring all registers. */
|
||||
|
||||
#define POP_FRAME { i386_pop_frame (); }
|
||||
|
||||
extern void i386_pop_frame (void);
|
||||
|
||||
|
||||
/* this is
|
||||
|
|
|
@ -1417,6 +1417,15 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||
|
||||
set_gdbarch_pc_in_call_dummy (gdbarch, pc_in_call_dummy_on_stack);
|
||||
|
||||
set_gdbarch_deprecated_extract_return_value (gdbarch,
|
||||
i386_extract_return_value);
|
||||
set_gdbarch_push_arguments (gdbarch, i386_push_arguments);
|
||||
set_gdbarch_push_dummy_frame (gdbarch, i386_push_dummy_frame);
|
||||
set_gdbarch_pop_frame (gdbarch, i386_pop_frame);
|
||||
set_gdbarch_store_struct_return (gdbarch, i386_store_struct_return);
|
||||
set_gdbarch_store_return_value (gdbarch, i386_store_return_value);
|
||||
set_gdbarch_deprecated_extract_struct_value_address (gdbarch,
|
||||
i386_extract_struct_value_address);
|
||||
set_gdbarch_use_struct_convention (gdbarch, i386_use_struct_convention);
|
||||
|
||||
set_gdbarch_frame_init_saved_regs (gdbarch, i386_frame_init_saved_regs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue