diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2020-06-25 17:56:12 +0200 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2020-06-25 17:56:12 +0200 |
commit | bb6e55f3ee440c5d03fd47ec32255c20b9f895fe (patch) | |
tree | e0aef8743d1f7912df194ef9e4806aeceb42778a /gdb/gdbarch.c | |
parent | c6d3683661a7623a306667915abba4d4695616d7 (diff) | |
download | gdb-bb6e55f3ee440c5d03fd47ec32255c20b9f895fe.zip gdb-bb6e55f3ee440c5d03fd47ec32255c20b9f895fe.tar.gz gdb-bb6e55f3ee440c5d03fd47ec32255c20b9f895fe.tar.bz2 |
Remove obsolete gdbarch_static_transform_name
gdbarch_static_transform_name is completely Solaris-specific or rather
specific to the Studio compilers. Studio cc has deprecated Stabs support
in the 12.4 release back in 2015, GCC has defaulted to DWARF-2 on Solaris
7+ since 2004 and Stabs themselves are pretty much obsolete, so the whole
code can go.
Tested on sparcv9-sun-solaris2.11 and x86_64-pc-linux-gnu with
--enable-targets=all.
* sol2-tdep.c (sol2_static_transform_name): Remove.
(sol2_init_abi): Don't register it.
* gdbarch.sh (static_transform_name): Remove.
* gdbarch.c, gdbarch.h: Regenerate.
* dbxread.c (read_dbx_symtab) <'S'>: Remove call to
gdbarch_static_transform_name.
* mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
* stabsread.c (define_symbol) <'X'>: Remove.
(define_symbol) <'S'>: Remove gdbarch_static_transform_name
handling.
<'V'>: Likewise.
* xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
<'S'>: Remove call to gdbarch_static_transform_name.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 55e4a67..6d1bb0d 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -292,7 +292,6 @@ struct gdbarch gdbarch_relocate_instruction_ftype *relocate_instruction; gdbarch_overlay_update_ftype *overlay_update; gdbarch_core_read_description_ftype *core_read_description; - gdbarch_static_transform_name_ftype *static_transform_name; int sofun_address_maybe_missing; gdbarch_process_record_ftype *process_record; gdbarch_process_record_signal_ftype *process_record_signal; @@ -658,7 +657,6 @@ verify_gdbarch (struct gdbarch *gdbarch) /* Skip verify of relocate_instruction, has predicate. */ /* Skip verify of overlay_update, has predicate. */ /* Skip verify of core_read_description, has predicate. */ - /* Skip verify of static_transform_name, has predicate. */ /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */ /* Skip verify of process_record, has predicate. */ /* Skip verify of process_record_signal, has predicate. */ @@ -1437,12 +1435,6 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) "gdbarch_dump: stap_register_suffixes = %s\n", pstring_list (gdbarch->stap_register_suffixes)); fprintf_unfiltered (file, - "gdbarch_dump: gdbarch_static_transform_name_p() = %d\n", - gdbarch_static_transform_name_p (gdbarch)); - fprintf_unfiltered (file, - "gdbarch_dump: static_transform_name = <%s>\n", - host_address_to_string (gdbarch->static_transform_name)); - fprintf_unfiltered (file, "gdbarch_dump: sw_breakpoint_from_kind = <%s>\n", host_address_to_string (gdbarch->sw_breakpoint_from_kind)); fprintf_unfiltered (file, @@ -4076,30 +4068,6 @@ set_gdbarch_core_read_description (struct gdbarch *gdbarch, } int -gdbarch_static_transform_name_p (struct gdbarch *gdbarch) -{ - gdb_assert (gdbarch != NULL); - return gdbarch->static_transform_name != NULL; -} - -const char * -gdbarch_static_transform_name (struct gdbarch *gdbarch, const char *name) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->static_transform_name != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_static_transform_name called\n"); - return gdbarch->static_transform_name (name); -} - -void -set_gdbarch_static_transform_name (struct gdbarch *gdbarch, - gdbarch_static_transform_name_ftype static_transform_name) -{ - gdbarch->static_transform_name = static_transform_name; -} - -int gdbarch_sofun_address_maybe_missing (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); |