From aa2a3f87e946fd500d0657c0f3e61f10780b8bfa Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 23 Mar 2004 15:16:47 +0000 Subject: 2004-03-23 Andrew Cagney * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate. * gdbarch.h, gdbarch.c: Re-generate. * i386obsd-tdep.c (i386obsd_init_abi): Update. * i386nbsd-tdep.c (i386nbsd_init_abi): Update. * i386bsd-tdep.c (i386bsd_init_abi): Update. * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END) (DEPRECATED_SIGTRAMP_START): Update. * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END) (DEPRECATED_SIGTRAMP_START): Update. * blockframe.c (find_pc_sect_partial_function): Update. * arch-utils.c (legacy_pc_in_sigtramp): Update. Index: doc/ChangeLog 2004-03-23 Andrew Cagney * gdbint.texinfo (Target Architecture Definition): Deprecate references to SIGTRAMP_START and SIGTRAMP_END. --- gdb/gdbarch.h | 90 +++++++++++++++++++++++------------------------------------ 1 file changed, 35 insertions(+), 55 deletions(-) (limited to 'gdb/gdbarch.h') diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index c829586..8585b70 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -2109,29 +2109,9 @@ extern void set_gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, gdb #define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) (gdbarch_in_solib_return_trampoline (current_gdbarch, pc, name)) #endif -/* Sigtramp is a routine that the kernel calls (which then calls the - signal handler). On most machines it is a library routine that is - linked into the executable. - - This macro, given a program counter value and the name of the - function in which that PC resides (which can be null if the name is - not known), returns nonzero if the PC and name show that we are in - sigtramp. - - On most machines just see if the name is sigtramp (and if we have - no name, assume we are not in sigtramp). - - FIXME: cagney/2002-04-21: The function find_pc_partial_function - calls find_pc_sect_partial_function() which calls - DEPRECATED_PC_IN_SIGTRAMP. This means DEPRECATED_PC_IN_SIGTRAMP - function can't be implemented by doing its own local NAME lookup. - - FIXME: cagney/2002-04-21: DEPRECATED_PC_IN_SIGTRAMP is something of - a mess. Some code also depends on SIGTRAMP_START and SIGTRAMP_END - but other does not. - - NOTE: cagney/2004-03-16: DEPRECATED_PC_IN_SIGTRAMP has been made - obsolete by signal trampoline frame unwind sniffers. */ +/* NOTE: cagney/2004-03-23: DEPRECATED_SIGTRAMP_START, + DEPRECATED_SIGTRAMP_END, and DEPRECATED_PC_IN_SIGTRAMP have all been + superseeded by signal trampoline frame sniffers. */ #if defined (DEPRECATED_PC_IN_SIGTRAMP) /* Legacy for systems yet to multi-arch DEPRECATED_PC_IN_SIGTRAMP */ @@ -2158,54 +2138,54 @@ extern void set_gdbarch_deprecated_pc_in_sigtramp (struct gdbarch *gdbarch, gdba #define DEPRECATED_PC_IN_SIGTRAMP(pc, name) (gdbarch_deprecated_pc_in_sigtramp (current_gdbarch, pc, name)) #endif -#if defined (SIGTRAMP_START) -/* Legacy for systems yet to multi-arch SIGTRAMP_START */ -#if !defined (SIGTRAMP_START_P) -#define SIGTRAMP_START_P() (1) +#if defined (DEPRECATED_SIGTRAMP_START) +/* Legacy for systems yet to multi-arch DEPRECATED_SIGTRAMP_START */ +#if !defined (DEPRECATED_SIGTRAMP_START_P) +#define DEPRECATED_SIGTRAMP_START_P() (1) #endif #endif -extern int gdbarch_sigtramp_start_p (struct gdbarch *gdbarch); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (SIGTRAMP_START_P) -#error "Non multi-arch definition of SIGTRAMP_START" +extern int gdbarch_deprecated_sigtramp_start_p (struct gdbarch *gdbarch); +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_SIGTRAMP_START_P) +#error "Non multi-arch definition of DEPRECATED_SIGTRAMP_START" #endif -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (SIGTRAMP_START_P) -#define SIGTRAMP_START_P() (gdbarch_sigtramp_start_p (current_gdbarch)) +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (DEPRECATED_SIGTRAMP_START_P) +#define DEPRECATED_SIGTRAMP_START_P() (gdbarch_deprecated_sigtramp_start_p (current_gdbarch)) #endif -typedef CORE_ADDR (gdbarch_sigtramp_start_ftype) (CORE_ADDR pc); -extern CORE_ADDR gdbarch_sigtramp_start (struct gdbarch *gdbarch, CORE_ADDR pc); -extern void set_gdbarch_sigtramp_start (struct gdbarch *gdbarch, gdbarch_sigtramp_start_ftype *sigtramp_start); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (SIGTRAMP_START) -#error "Non multi-arch definition of SIGTRAMP_START" +typedef CORE_ADDR (gdbarch_deprecated_sigtramp_start_ftype) (CORE_ADDR pc); +extern CORE_ADDR gdbarch_deprecated_sigtramp_start (struct gdbarch *gdbarch, CORE_ADDR pc); +extern void set_gdbarch_deprecated_sigtramp_start (struct gdbarch *gdbarch, gdbarch_deprecated_sigtramp_start_ftype *deprecated_sigtramp_start); +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_SIGTRAMP_START) +#error "Non multi-arch definition of DEPRECATED_SIGTRAMP_START" #endif -#if !defined (SIGTRAMP_START) -#define SIGTRAMP_START(pc) (gdbarch_sigtramp_start (current_gdbarch, pc)) +#if !defined (DEPRECATED_SIGTRAMP_START) +#define DEPRECATED_SIGTRAMP_START(pc) (gdbarch_deprecated_sigtramp_start (current_gdbarch, pc)) #endif -#if defined (SIGTRAMP_END) -/* Legacy for systems yet to multi-arch SIGTRAMP_END */ -#if !defined (SIGTRAMP_END_P) -#define SIGTRAMP_END_P() (1) +#if defined (DEPRECATED_SIGTRAMP_END) +/* Legacy for systems yet to multi-arch DEPRECATED_SIGTRAMP_END */ +#if !defined (DEPRECATED_SIGTRAMP_END_P) +#define DEPRECATED_SIGTRAMP_END_P() (1) #endif #endif -extern int gdbarch_sigtramp_end_p (struct gdbarch *gdbarch); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (SIGTRAMP_END_P) -#error "Non multi-arch definition of SIGTRAMP_END" +extern int gdbarch_deprecated_sigtramp_end_p (struct gdbarch *gdbarch); +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_SIGTRAMP_END_P) +#error "Non multi-arch definition of DEPRECATED_SIGTRAMP_END" #endif -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (SIGTRAMP_END_P) -#define SIGTRAMP_END_P() (gdbarch_sigtramp_end_p (current_gdbarch)) +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (DEPRECATED_SIGTRAMP_END_P) +#define DEPRECATED_SIGTRAMP_END_P() (gdbarch_deprecated_sigtramp_end_p (current_gdbarch)) #endif -typedef CORE_ADDR (gdbarch_sigtramp_end_ftype) (CORE_ADDR pc); -extern CORE_ADDR gdbarch_sigtramp_end (struct gdbarch *gdbarch, CORE_ADDR pc); -extern void set_gdbarch_sigtramp_end (struct gdbarch *gdbarch, gdbarch_sigtramp_end_ftype *sigtramp_end); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (SIGTRAMP_END) -#error "Non multi-arch definition of SIGTRAMP_END" +typedef CORE_ADDR (gdbarch_deprecated_sigtramp_end_ftype) (CORE_ADDR pc); +extern CORE_ADDR gdbarch_deprecated_sigtramp_end (struct gdbarch *gdbarch, CORE_ADDR pc); +extern void set_gdbarch_deprecated_sigtramp_end (struct gdbarch *gdbarch, gdbarch_deprecated_sigtramp_end_ftype *deprecated_sigtramp_end); +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_SIGTRAMP_END) +#error "Non multi-arch definition of DEPRECATED_SIGTRAMP_END" #endif -#if !defined (SIGTRAMP_END) -#define SIGTRAMP_END(pc) (gdbarch_sigtramp_end (current_gdbarch, pc)) +#if !defined (DEPRECATED_SIGTRAMP_END) +#define DEPRECATED_SIGTRAMP_END(pc) (gdbarch_deprecated_sigtramp_end (current_gdbarch, pc)) #endif /* A target might have problems with watchpoints as soon as the stack -- cgit v1.1