diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-09-02 19:02:46 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-09-02 19:02:46 +0000 |
commit | 56f2bb16b42f2a9de2dcb2c6f460726e3b1e3e6a (patch) | |
tree | 6ef520599e5b04b557d34b3a6baffd6174d17f7d /gdb/gdbarch.h | |
parent | 4d8b953ff42d3cfb4f9dfb1c460d29dc06ba584c (diff) | |
download | gdb-56f2bb16b42f2a9de2dcb2c6f460726e3b1e3e6a.tar.gz |
* infcall.c (call_function_by_hand): Remove code handling
deprecated_push_arguments. Bail out early if push_dummy_call
isn't available.
* gdbarch.sh (deprecated_push_arguments): Delete. Adjust a few
comments accordingly.
* gdbarch.h, gdbarch.c: Regenerate.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 22d74b717ac..434966f0b33 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -525,8 +525,7 @@ extern void set_gdbarch_deprecated_fp_regnum (struct gdbarch *gdbarch, int depre #define DEPRECATED_FP_REGNUM (gdbarch_deprecated_fp_regnum (current_gdbarch)) #endif -/* See gdbint.texinfo. See infcall.c. New, all singing all dancing, - replacement for DEPRECATED_PUSH_ARGUMENTS. */ +/* See gdbint.texinfo. See infcall.c. */ extern int gdbarch_push_dummy_call_p (struct gdbarch *gdbarch); @@ -534,33 +533,6 @@ typedef CORE_ADDR (gdbarch_push_dummy_call_ftype) (struct gdbarch *gdbarch, stru extern CORE_ADDR gdbarch_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, struct value **args, CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr); extern void set_gdbarch_push_dummy_call (struct gdbarch *gdbarch, gdbarch_push_dummy_call_ftype *push_dummy_call); -/* PUSH_DUMMY_CALL is a direct replacement for DEPRECATED_PUSH_ARGUMENTS. */ - -#if defined (DEPRECATED_PUSH_ARGUMENTS) -/* Legacy for systems yet to multi-arch DEPRECATED_PUSH_ARGUMENTS */ -#if !defined (DEPRECATED_PUSH_ARGUMENTS_P) -#define DEPRECATED_PUSH_ARGUMENTS_P() (1) -#endif -#endif - -extern int gdbarch_deprecated_push_arguments_p (struct gdbarch *gdbarch); -#if !defined (GDB_TM_FILE) && defined (DEPRECATED_PUSH_ARGUMENTS_P) -#error "Non multi-arch definition of DEPRECATED_PUSH_ARGUMENTS" -#endif -#if !defined (DEPRECATED_PUSH_ARGUMENTS_P) -#define DEPRECATED_PUSH_ARGUMENTS_P() (gdbarch_deprecated_push_arguments_p (current_gdbarch)) -#endif - -typedef CORE_ADDR (gdbarch_deprecated_push_arguments_ftype) (int nargs, struct value **args, CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr); -extern CORE_ADDR gdbarch_deprecated_push_arguments (struct gdbarch *gdbarch, int nargs, struct value **args, CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr); -extern void set_gdbarch_deprecated_push_arguments (struct gdbarch *gdbarch, gdbarch_deprecated_push_arguments_ftype *deprecated_push_arguments); -#if !defined (GDB_TM_FILE) && defined (DEPRECATED_PUSH_ARGUMENTS) -#error "Non multi-arch definition of DEPRECATED_PUSH_ARGUMENTS" -#endif -#if !defined (DEPRECATED_PUSH_ARGUMENTS) -#define DEPRECATED_PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) (gdbarch_deprecated_push_arguments (current_gdbarch, nargs, args, sp, struct_return, struct_addr)) -#endif - /* DEPRECATED_REGISTER_SIZE can be deleted. */ extern int gdbarch_deprecated_register_size (struct gdbarch *gdbarch); @@ -753,7 +725,7 @@ typedef CORE_ADDR (gdbarch_integer_to_address_ftype) (struct gdbarch *gdbarch, s extern CORE_ADDR gdbarch_integer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf); extern void set_gdbarch_integer_to_address (struct gdbarch *gdbarch, gdbarch_integer_to_address_ftype *integer_to_address); -/* NOTE: cagney/2003-03-24: Replaced by PUSH_ARGUMENTS. */ +/* NOTE: kettenis/2005-09-01: Replaced by PUSH_DUMMY_CALL. */ #if defined (DEPRECATED_STORE_STRUCT_RETURN) /* Legacy for systems yet to multi-arch DEPRECATED_STORE_STRUCT_RETURN */ |