From: Andrew Cagney Date: Sun, 31 Oct 2004 21:21:41 +0000 (+0000) Subject: 2004-10-31 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b22e8f02be7871414431cb0c214800cb6cf656b9;p=binutils-gdb.git 2004-10-31 Andrew Cagney * gdbarch.sh (in_solib_call_trampoline): Delete. * gdbarch.h, gdbarch.c: Re-generate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ecdf2c603a8..e8cf22fe023 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-10-31 Andrew Cagney + * gdbarch.sh (in_solib_call_trampoline): Delete. + * gdbarch.h, gdbarch.c: Re-generate. + * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline. * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index e822fa6866e..c277e912eee 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -215,7 +215,6 @@ struct gdbarch gdbarch_print_insn_ftype *print_insn; gdbarch_skip_trampoline_code_ftype *skip_trampoline_code; gdbarch_skip_solib_resolver_ftype *skip_solib_resolver; - gdbarch_in_solib_call_trampoline_ftype *in_solib_call_trampoline; gdbarch_in_solib_return_trampoline_ftype *in_solib_return_trampoline; gdbarch_in_function_epilogue_p_ftype *in_function_epilogue_p; gdbarch_construct_inferior_arguments_ftype *construct_inferior_arguments; @@ -342,7 +341,6 @@ struct gdbarch startup_gdbarch = 0, /* print_insn */ 0, /* skip_trampoline_code */ generic_skip_solib_resolver, /* skip_solib_resolver */ - 0, /* in_solib_call_trampoline */ 0, /* in_solib_return_trampoline */ generic_in_function_epilogue_p, /* in_function_epilogue_p */ construct_inferior_arguments, /* construct_inferior_arguments */ @@ -439,7 +437,6 @@ gdbarch_alloc (const struct gdbarch_info *info, current_gdbarch->smash_text_address = core_addr_identity; current_gdbarch->skip_trampoline_code = generic_skip_trampoline_code; current_gdbarch->skip_solib_resolver = generic_skip_solib_resolver; - current_gdbarch->in_solib_call_trampoline = generic_in_solib_call_trampoline; current_gdbarch->in_solib_return_trampoline = generic_in_solib_return_trampoline; current_gdbarch->in_function_epilogue_p = generic_in_function_epilogue_p; current_gdbarch->construct_inferior_arguments = construct_inferior_arguments; @@ -598,7 +595,6 @@ verify_gdbarch (struct gdbarch *current_gdbarch) fprintf_unfiltered (log, "\n\tprint_insn"); /* Skip verify of skip_trampoline_code, invalid_p == 0 */ /* Skip verify of skip_solib_resolver, invalid_p == 0 */ - /* Skip verify of in_solib_call_trampoline, invalid_p == 0 */ /* Skip verify of in_solib_return_trampoline, invalid_p == 0 */ /* Skip verify of in_function_epilogue_p, invalid_p == 0 */ /* Skip verify of construct_inferior_arguments, invalid_p == 0 */ @@ -1181,15 +1177,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) fprintf_unfiltered (file, "gdbarch_dump: in_function_epilogue_p = <0x%lx>\n", (long) current_gdbarch->in_function_epilogue_p); -#ifdef IN_SOLIB_CALL_TRAMPOLINE - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "IN_SOLIB_CALL_TRAMPOLINE(pc, name)", - XSTRING (IN_SOLIB_CALL_TRAMPOLINE (pc, name))); -#endif - fprintf_unfiltered (file, - "gdbarch_dump: in_solib_call_trampoline = <0x%lx>\n", - (long) current_gdbarch->in_solib_call_trampoline); #ifdef IN_SOLIB_RETURN_TRAMPOLINE fprintf_unfiltered (file, "gdbarch_dump: %s # %s\n", @@ -3429,23 +3416,6 @@ set_gdbarch_skip_solib_resolver (struct gdbarch *gdbarch, gdbarch->skip_solib_resolver = skip_solib_resolver; } -int -gdbarch_in_solib_call_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, char *name) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->in_solib_call_trampoline != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_in_solib_call_trampoline called\n"); - return gdbarch->in_solib_call_trampoline (pc, name); -} - -void -set_gdbarch_in_solib_call_trampoline (struct gdbarch *gdbarch, - gdbarch_in_solib_call_trampoline_ftype in_solib_call_trampoline) -{ - gdbarch->in_solib_call_trampoline = in_solib_call_trampoline; -} - int gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, char *name) { diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 8ff296c0712..4ab8ea50afa 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1258,20 +1258,6 @@ typedef CORE_ADDR (gdbarch_skip_solib_resolver_ftype) (struct gdbarch *gdbarch, extern CORE_ADDR gdbarch_skip_solib_resolver (struct gdbarch *gdbarch, CORE_ADDR pc); extern void set_gdbarch_skip_solib_resolver (struct gdbarch *gdbarch, gdbarch_skip_solib_resolver_ftype *skip_solib_resolver); -/* For SVR4 shared libraries, each call goes through a small piece of - trampoline code in the ".plt" section. IN_SOLIB_CALL_TRAMPOLINE evaluates - to nonzero if we are currently stopped in one of these. */ - -typedef int (gdbarch_in_solib_call_trampoline_ftype) (CORE_ADDR pc, char *name); -extern int gdbarch_in_solib_call_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, char *name); -extern void set_gdbarch_in_solib_call_trampoline (struct gdbarch *gdbarch, gdbarch_in_solib_call_trampoline_ftype *in_solib_call_trampoline); -#if !defined (GDB_TM_FILE) && defined (IN_SOLIB_CALL_TRAMPOLINE) -#error "Non multi-arch definition of IN_SOLIB_CALL_TRAMPOLINE" -#endif -#if !defined (IN_SOLIB_CALL_TRAMPOLINE) -#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) (gdbarch_in_solib_call_trampoline (current_gdbarch, pc, name)) -#endif - /* Some systems also have trampoline code for returning from shared libs. */ typedef int (gdbarch_in_solib_return_trampoline_ftype) (CORE_ADDR pc, char *name); diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index fec4c7a12f6..aa0cd62cf25 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -624,11 +624,6 @@ f:=:CORE_ADDR:skip_trampoline_code:CORE_ADDR pc:pc::generic_skip_trampoline_code # evaluates non-zero, this is the address where the debugger will place # a step-resume breakpoint to get us past the dynamic linker. m::CORE_ADDR:skip_solib_resolver:CORE_ADDR pc:pc::generic_skip_solib_resolver::0 -# For SVR4 shared libraries, each call goes through a small piece of -# trampoline code in the ".plt" section. IN_SOLIB_CALL_TRAMPOLINE evaluates -# to nonzero if we are currently stopped in one of these. -f:=:int:in_solib_call_trampoline:CORE_ADDR pc, char *name:pc, name::generic_in_solib_call_trampoline::0 - # Some systems also have trampoline code for returning from shared libs. f:=:int:in_solib_return_trampoline:CORE_ADDR pc, char *name:pc, name::generic_in_solib_return_trampoline::0