From 78ccbf7f478838c1204a9ad9858c8ea600b4107a Mon Sep 17 00:00:00 2001 From: cagney Date: Thu, 6 Nov 2003 03:29:48 +0000 Subject: [PATCH] 2003-11-05 Andrew Cagney * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete macro. * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro. * config/i386/tm-cygwin.h (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro. * config/powerpc/tm-linux.h (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro. (at_subroutine_call_instruction_target): Delete declaration. * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro. * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro. * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro. --- gdb/ChangeLog | 12 ++++++++++++ gdb/config/i386/tm-cygwin.h | 2 -- gdb/config/m68k/tm-sun3.h | 20 -------------------- gdb/config/ns32k/tm-ns32k.h | 2 -- gdb/config/powerpc/tm-linux.h | 4 ---- gdb/config/sparc/tm-sp64linux.h | 2 -- gdb/config/sparc/tm-sparc.h | 2 -- 7 files changed, 12 insertions(+), 32 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 43ac45455b..dbc221d8ad 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,17 @@ 2003-11-05 Andrew Cagney + * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete + macro. + * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro. + * config/i386/tm-cygwin.h + (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro. + * config/powerpc/tm-linux.h + (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro. + (at_subroutine_call_instruction_target): Delete declaration. + * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro. + * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro. + * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro. + * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with "struct bfd_section" and "struct bfd". * target.h (struct section_table): Ditto. diff --git a/gdb/config/i386/tm-cygwin.h b/gdb/config/i386/tm-cygwin.h index 4b926f96cd..e7b49de558 100644 --- a/gdb/config/i386/tm-cygwin.h +++ b/gdb/config/i386/tm-cygwin.h @@ -35,5 +35,3 @@ char *solib_address (CORE_ADDR); char *child_solib_loaded_library_pathname(int); void child_clear_solibs (void); void dll_symbol_command (char *, int); - -#define LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES (1) diff --git a/gdb/config/m68k/tm-sun3.h b/gdb/config/m68k/tm-sun3.h index f721dcf6fd..93fea35395 100644 --- a/gdb/config/m68k/tm-sun3.h +++ b/gdb/config/m68k/tm-sun3.h @@ -86,24 +86,4 @@ /* The code which tries to deal with this bug is never harmful on a sun3. */ #define SUN_FIXED_LBRAC_BUG (0) -/* On the sun3 the kernel pushes a sigcontext on the user stack and - then `calls' _sigtramp in user code. _sigtramp saves the floating - point status on the stack and calls the signal handler - function. The stack does not contain enough information to allow a - normal backtrace, but sigcontext contains the saved user - pc/sp. DEPRECATED_FRAME_CHAIN and friends in tm-m68k.h and - m68k_find_saved_regs deal with this situation by manufacturing a - fake frame for _sigtramp. SIG_PC_FP_OFFSET is the offset from the - signal handler frame to the saved pc in sigcontext. - SIG_SP_FP_OFFSET is the offset from the signal handler frame to the - end of sigcontext which is identical to the saved sp at - SIG_PC_FP_OFFSET - 4. - - Please note that it is impossible to correctly backtrace from a breakpoint - in _sigtramp as _sigtramp modifies the stack pointer a few times. */ - -#undef SIG_PC_FP_OFFSET -#define SIG_PC_FP_OFFSET 324 -#define SIG_SP_FP_OFFSET 332 - #endif /* TM_SUN3_H */ diff --git a/gdb/config/ns32k/tm-ns32k.h b/gdb/config/ns32k/tm-ns32k.h index 96dd2cb26b..a603fc8a4d 100644 --- a/gdb/config/ns32k/tm-ns32k.h +++ b/gdb/config/ns32k/tm-ns32k.h @@ -32,6 +32,4 @@ #define STACK_END_ADDR (0xfffff000) #endif -#define NUM_GENERAL_REGS 8 - #endif /* TM_NS32K_H */ diff --git a/gdb/config/powerpc/tm-linux.h b/gdb/config/powerpc/tm-linux.h index d7faf7ec56..25b99049fb 100644 --- a/gdb/config/powerpc/tm-linux.h +++ b/gdb/config/powerpc/tm-linux.h @@ -34,10 +34,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Make sure nexti gets the help it needs for debugging assembly code without symbols */ -#define AT_SUBROUTINE_CALL_INSTRUCTION_TARGET(prevpc,stoppc) \ - at_subroutine_call_instruction_target(prevpc,stoppc) -extern int at_subroutine_call_instruction_target(); - extern int ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name); #undef IN_SIGTRAMP #define IN_SIGTRAMP(pc,func_name) ppc_linux_in_sigtramp (pc,func_name) diff --git a/gdb/config/sparc/tm-sp64linux.h b/gdb/config/sparc/tm-sp64linux.h index 17bdd8a002..81d9db0036 100644 --- a/gdb/config/sparc/tm-sp64linux.h +++ b/gdb/config/sparc/tm-sp64linux.h @@ -29,8 +29,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #undef TM_PRINT_INSN_MACH #define TM_PRINT_INSN_MACH bfd_mach_sparc_v9a -#define GDB_PTRACE_REGS64 - #include "config/tm-sysv4.h" #endif /* TM_SPARC_LIN64_H */ diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h index eb02227377..e8deebc44a 100644 --- a/gdb/config/sparc/tm-sparc.h +++ b/gdb/config/sparc/tm-sparc.h @@ -225,8 +225,6 @@ extern void sparc_print_extra_frame_info (struct frame_info *); #define FRAME_SAVED_L0 0 #define FRAME_SAVED_I0 (8 * DEPRECATED_REGISTER_RAW_SIZE (L0_REGNUM)) -#define FRAME_STRUCT_ARGS_ADDRESS(FI) (get_frame_base (FI)) - /* Things needed for making the inferior call functions. */ /* * First of all, let me give my opinion of what the DUMMY_FRAME -- 2.11.0