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 | a86c5fc9d872cff24a45c4e19f4cf1e8c9df4c16 (patch) | |
tree | 19950754d0d68d5185c5578c189b03249cb6f842 /gdb/gdbarch.h | |
parent | c66a62d36f92801c767d0f8e36119a32783d6201 (diff) | |
download | gdb-a86c5fc9d872cff24a45c4e19f4cf1e8c9df4c16.zip gdb-a86c5fc9d872cff24a45c4e19f4cf1e8c9df4c16.tar.gz gdb-a86c5fc9d872cff24a45c4e19f4cf1e8c9df4c16.tar.bz2 |
* 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 22d74b7..434966f 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 */ |