From 0ec747947115a207a720316a4267e0bbb02449c2 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.c | 124 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 62 insertions(+), 62 deletions(-) (limited to 'gdb/gdbarch.c') diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 0e8f1fe6e4d..d6246af2a80 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -246,8 +246,8 @@ struct gdbarch gdbarch_in_solib_call_trampoline_ftype *in_solib_call_trampoline; gdbarch_in_solib_return_trampoline_ftype *in_solib_return_trampoline; gdbarch_deprecated_pc_in_sigtramp_ftype *deprecated_pc_in_sigtramp; - gdbarch_sigtramp_start_ftype *sigtramp_start; - gdbarch_sigtramp_end_ftype *sigtramp_end; + gdbarch_deprecated_sigtramp_start_ftype *deprecated_sigtramp_start; + gdbarch_deprecated_sigtramp_end_ftype *deprecated_sigtramp_end; gdbarch_in_function_epilogue_p_ftype *in_function_epilogue_p; gdbarch_construct_inferior_arguments_ftype *construct_inferior_arguments; gdbarch_elf_make_msymbol_special_ftype *elf_make_msymbol_special; @@ -413,8 +413,8 @@ struct gdbarch startup_gdbarch = 0, /* in_solib_call_trampoline */ 0, /* in_solib_return_trampoline */ 0, /* deprecated_pc_in_sigtramp */ - 0, /* sigtramp_start */ - 0, /* sigtramp_end */ + 0, /* deprecated_sigtramp_start */ + 0, /* deprecated_sigtramp_end */ generic_in_function_epilogue_p, /* in_function_epilogue_p */ construct_inferior_arguments, /* construct_inferior_arguments */ 0, /* elf_make_msymbol_special */ @@ -721,8 +721,8 @@ verify_gdbarch (struct gdbarch *current_gdbarch) /* Skip verify of in_solib_call_trampoline, invalid_p == 0 */ /* Skip verify of in_solib_return_trampoline, invalid_p == 0 */ /* Skip verify of deprecated_pc_in_sigtramp, has predicate */ - /* Skip verify of sigtramp_start, has predicate */ - /* Skip verify of sigtramp_end, has predicate */ + /* Skip verify of deprecated_sigtramp_start, has predicate */ + /* Skip verify of deprecated_sigtramp_end, has predicate */ /* Skip verify of in_function_epilogue_p, invalid_p == 0 */ /* Skip verify of construct_inferior_arguments, invalid_p == 0 */ /* Skip verify of elf_make_msymbol_special, invalid_p == 0 */ @@ -1623,6 +1623,44 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) (long) current_gdbarch->deprecated_save_dummy_frame_tos /*DEPRECATED_SAVE_DUMMY_FRAME_TOS ()*/); #endif +#ifdef DEPRECATED_SIGTRAMP_END_P + fprintf_unfiltered (file, + "gdbarch_dump: %s # %s\n", + "DEPRECATED_SIGTRAMP_END_P()", + XSTRING (DEPRECATED_SIGTRAMP_END_P ())); + fprintf_unfiltered (file, + "gdbarch_dump: DEPRECATED_SIGTRAMP_END_P() = %d\n", + DEPRECATED_SIGTRAMP_END_P ()); +#endif +#ifdef DEPRECATED_SIGTRAMP_END + fprintf_unfiltered (file, + "gdbarch_dump: %s # %s\n", + "DEPRECATED_SIGTRAMP_END(pc)", + XSTRING (DEPRECATED_SIGTRAMP_END (pc))); + fprintf_unfiltered (file, + "gdbarch_dump: DEPRECATED_SIGTRAMP_END = <0x%08lx>\n", + (long) current_gdbarch->deprecated_sigtramp_end + /*DEPRECATED_SIGTRAMP_END ()*/); +#endif +#ifdef DEPRECATED_SIGTRAMP_START_P + fprintf_unfiltered (file, + "gdbarch_dump: %s # %s\n", + "DEPRECATED_SIGTRAMP_START_P()", + XSTRING (DEPRECATED_SIGTRAMP_START_P ())); + fprintf_unfiltered (file, + "gdbarch_dump: DEPRECATED_SIGTRAMP_START_P() = %d\n", + DEPRECATED_SIGTRAMP_START_P ()); +#endif +#ifdef DEPRECATED_SIGTRAMP_START + fprintf_unfiltered (file, + "gdbarch_dump: %s # %s\n", + "DEPRECATED_SIGTRAMP_START(pc)", + XSTRING (DEPRECATED_SIGTRAMP_START (pc))); + fprintf_unfiltered (file, + "gdbarch_dump: DEPRECATED_SIGTRAMP_START = <0x%08lx>\n", + (long) current_gdbarch->deprecated_sigtramp_start + /*DEPRECATED_SIGTRAMP_START ()*/); +#endif #ifdef DEPRECATED_SIZEOF_CALL_DUMMY_WORDS fprintf_unfiltered (file, "gdbarch_dump: DEPRECATED_SIZEOF_CALL_DUMMY_WORDS # %s\n", @@ -2085,44 +2123,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) (long) current_gdbarch->sdb_reg_to_regnum /*SDB_REG_TO_REGNUM ()*/); #endif -#ifdef SIGTRAMP_END_P - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "SIGTRAMP_END_P()", - XSTRING (SIGTRAMP_END_P ())); - fprintf_unfiltered (file, - "gdbarch_dump: SIGTRAMP_END_P() = %d\n", - SIGTRAMP_END_P ()); -#endif -#ifdef SIGTRAMP_END - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "SIGTRAMP_END(pc)", - XSTRING (SIGTRAMP_END (pc))); - fprintf_unfiltered (file, - "gdbarch_dump: SIGTRAMP_END = <0x%08lx>\n", - (long) current_gdbarch->sigtramp_end - /*SIGTRAMP_END ()*/); -#endif -#ifdef SIGTRAMP_START_P - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "SIGTRAMP_START_P()", - XSTRING (SIGTRAMP_START_P ())); - fprintf_unfiltered (file, - "gdbarch_dump: SIGTRAMP_START_P() = %d\n", - SIGTRAMP_START_P ()); -#endif -#ifdef SIGTRAMP_START - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "SIGTRAMP_START(pc)", - XSTRING (SIGTRAMP_START (pc))); - fprintf_unfiltered (file, - "gdbarch_dump: SIGTRAMP_START = <0x%08lx>\n", - (long) current_gdbarch->sigtramp_start - /*SIGTRAMP_START ()*/); -#endif #ifdef SKIP_PROLOGUE fprintf_unfiltered (file, "gdbarch_dump: %s # %s\n", @@ -5088,51 +5088,51 @@ set_gdbarch_deprecated_pc_in_sigtramp (struct gdbarch *gdbarch, } int -gdbarch_sigtramp_start_p (struct gdbarch *gdbarch) +gdbarch_deprecated_sigtramp_start_p (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); - return gdbarch->sigtramp_start != NULL; + return gdbarch->deprecated_sigtramp_start != NULL; } CORE_ADDR -gdbarch_sigtramp_start (struct gdbarch *gdbarch, CORE_ADDR pc) +gdbarch_deprecated_sigtramp_start (struct gdbarch *gdbarch, CORE_ADDR pc) { gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->sigtramp_start != NULL); + gdb_assert (gdbarch->deprecated_sigtramp_start != NULL); if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_sigtramp_start called\n"); - return gdbarch->sigtramp_start (pc); + fprintf_unfiltered (gdb_stdlog, "gdbarch_deprecated_sigtramp_start called\n"); + return gdbarch->deprecated_sigtramp_start (pc); } void -set_gdbarch_sigtramp_start (struct gdbarch *gdbarch, - gdbarch_sigtramp_start_ftype sigtramp_start) +set_gdbarch_deprecated_sigtramp_start (struct gdbarch *gdbarch, + gdbarch_deprecated_sigtramp_start_ftype deprecated_sigtramp_start) { - gdbarch->sigtramp_start = sigtramp_start; + gdbarch->deprecated_sigtramp_start = deprecated_sigtramp_start; } int -gdbarch_sigtramp_end_p (struct gdbarch *gdbarch) +gdbarch_deprecated_sigtramp_end_p (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); - return gdbarch->sigtramp_end != NULL; + return gdbarch->deprecated_sigtramp_end != NULL; } CORE_ADDR -gdbarch_sigtramp_end (struct gdbarch *gdbarch, CORE_ADDR pc) +gdbarch_deprecated_sigtramp_end (struct gdbarch *gdbarch, CORE_ADDR pc) { gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->sigtramp_end != NULL); + gdb_assert (gdbarch->deprecated_sigtramp_end != NULL); if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_sigtramp_end called\n"); - return gdbarch->sigtramp_end (pc); + fprintf_unfiltered (gdb_stdlog, "gdbarch_deprecated_sigtramp_end called\n"); + return gdbarch->deprecated_sigtramp_end (pc); } void -set_gdbarch_sigtramp_end (struct gdbarch *gdbarch, - gdbarch_sigtramp_end_ftype sigtramp_end) +set_gdbarch_deprecated_sigtramp_end (struct gdbarch *gdbarch, + gdbarch_deprecated_sigtramp_end_ftype deprecated_sigtramp_end) { - gdbarch->sigtramp_end = sigtramp_end; + gdbarch->deprecated_sigtramp_end = deprecated_sigtramp_end; } int -- cgit v1.2.1