From 508a14a5c73ab35e535cd723e6117f5a4f7ff8c7 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 27 Nov 2002 01:08:50 +0000 Subject: [PATCH] 2002-11-26 Andrew Cagney * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK. (USE_GENERIC_DUMMY_FRAMES): Define as zero. (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack. * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_at_entry_point. * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK. (USE_GENERIC_DUMMY_FRAMES): Define as zero. (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack. * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine. * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack. * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack. * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK. (USE_GENERIC_DUMMY_FRAMES): Define as zero. (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack. --- gdb/ChangeLog | 19 +++++++++++++++++++ gdb/config/h8500/tm-h8500.h | 5 +++++ gdb/config/mn10200/tm-mn10200.h | 1 + gdb/config/pa/tm-hppa.h | 5 +++++ gdb/config/sparc/tm-sp64.h | 4 ++++ gdb/config/sparc/tm-sparc.h | 1 + gdb/config/z8k/tm-z8k.h | 5 +++++ 7 files changed, 40 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8350fef643..7989b65695 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,24 @@ 2002-11-26 Andrew Cagney + * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK. + (USE_GENERIC_DUMMY_FRAMES): Define as zero. + (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack. + * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as + pc_in_call_dummy_at_entry_point. + * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK. + (USE_GENERIC_DUMMY_FRAMES): Define as zero. + (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack. + * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine. + * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as + pc_in_call_dummy_on_stack. + * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as + pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack. + * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK. + (USE_GENERIC_DUMMY_FRAMES): Define as zero. + (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack. + +2002-11-26 Andrew Cagney + * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename pc_in_call_dummy_before_text_end (deprecated_pc_in_call_dummy_after_text_end): Rename diff --git a/gdb/config/h8500/tm-h8500.h b/gdb/config/h8500/tm-h8500.h index 8c4ae455ef..3629343c40 100644 --- a/gdb/config/h8500/tm-h8500.h +++ b/gdb/config/h8500/tm-h8500.h @@ -22,6 +22,11 @@ #include "regcache.h" +/* NOTE: cagney/2002-11-24: This is a guess. */ +#define USE_GENERIC_DUMMY_FRAMES 0 +#define CALL_DUMMY_LOCATION ON_STACK +#define PC_IN_CALL_DUMMY(pc, sp, frame_address) pc_in_call_dummy_on_stack (pc, sp, frame_address) + /* Contributed by Steve Chamberlain sac@cygnus.com */ #define GDB_TARGET_IS_H8500 diff --git a/gdb/config/mn10200/tm-mn10200.h b/gdb/config/mn10200/tm-mn10200.h index 0fe58d818e..299472cd1a 100644 --- a/gdb/config/mn10200/tm-mn10200.h +++ b/gdb/config/mn10200/tm-mn10200.h @@ -189,6 +189,7 @@ extern void mn10200_pop_frame (struct frame_info *); #define CALL_DUMMY_START_OFFSET (0) #define CALL_DUMMY_BREAKPOINT_OFFSET (0) #define CALL_DUMMY_LOCATION AT_ENTRY_POINT +#define PC_IN_CALL_DUMMY(pc, sp, frame_address) pc_in_call_dummy_at_entry_point (pc, sp, frame_address) #define FIX_CALL_DUMMY(DUMMY, START, FUNADDR, NARGS, ARGS, TYPE, GCCP) #define CALL_DUMMY_ADDRESS() entry_point_address () diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h index 319576d25e..e1faf137ab 100644 --- a/gdb/config/pa/tm-hppa.h +++ b/gdb/config/pa/tm-hppa.h @@ -26,6 +26,11 @@ #define GDB_MULTI_ARCH 0 +/* NOTE: cagney/2002-11-24: This is a guess. */ +#define USE_GENERIC_DUMMY_FRAMES 0 +#define CALL_DUMMY_LOCATION ON_STACK +#define PC_IN_CALL_DUMMY(pc, sp, frame_address) pc_in_call_dummy_on_stack (pc, sp, frame_address) + /* Forward declarations of some types we use in prototypes */ struct frame_info; diff --git a/gdb/config/sparc/tm-sp64.h b/gdb/config/sparc/tm-sp64.h index 4c07f1fc1b..60b6c70721 100644 --- a/gdb/config/sparc/tm-sp64.h +++ b/gdb/config/sparc/tm-sp64.h @@ -100,6 +100,8 @@ #define CALL_DUMMY_BREAKPOINT_OFFSET_P 1 #undef CALL_DUMMY_LOCATION #define CALL_DUMMY_LOCATION AT_ENTRY_POINT +#undef PC_IN_CALL_DUMMY +#define PC_IN_CALL_DUMMY(pc, sp, frame_address) pc_in_call_dummy_at_entry_point (pc, sp, frame_address) #undef CALL_DUMMY_STACK_ADJUST #define CALL_DUMMY_STACK_ADJUST 128 #undef SIZEOF_CALL_DUMMY_WORDS @@ -168,6 +170,8 @@ sparc_at_entry_store_struct_return (CORE_ADDR addr, CORE_ADDR sp); /* Call dummy will be located on the stack. */ #undef CALL_DUMMY_LOCATION #define CALL_DUMMY_LOCATION ON_STACK +#undef PC_IN_CALL_DUMMY +#define PC_IN_CALL_DUMMY(pc, sp, frame_address) pc_in_call_dummy_on_stack (pc, sp, frame_address) /* Insert the function address into the call dummy. */ #undef FIX_CALL_DUMMY diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h index e130daf77a..2a89ad8626 100644 --- a/gdb/config/sparc/tm-sparc.h +++ b/gdb/config/sparc/tm-sparc.h @@ -657,6 +657,7 @@ extern void sparc_print_extra_frame_info (struct frame_info *); /* Call dummy method (eg. on stack, at entry point, etc.) */ #define CALL_DUMMY_LOCATION ON_STACK +#define PC_IN_CALL_DUMMY(pc, sp, frame_address) pc_in_call_dummy_on_stack (pc, sp, frame_address) /* Method for detecting dummy frames. */ diff --git a/gdb/config/z8k/tm-z8k.h b/gdb/config/z8k/tm-z8k.h index edc5664e7a..6197d6dd36 100644 --- a/gdb/config/z8k/tm-z8k.h +++ b/gdb/config/z8k/tm-z8k.h @@ -20,6 +20,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* NOTE: cagney/2002-11-24: This is a guess. */ +#define USE_GENERIC_DUMMY_FRAMES 0 +#define CALL_DUMMY_LOCATION ON_STACK +#define PC_IN_CALL_DUMMY(pc, sp, frame_address) pc_in_call_dummy_on_stack (pc, sp, frame_address) + #undef TARGET_INT_BIT #undef TARGET_LONG_BIT #undef TARGET_SHORT_BIT -- 2.11.0