mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
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.
This commit is contained in:
@ -723,12 +723,6 @@ define_symbol (CORE_ADDR valu, const char *string, int desc, int type,
|
||||
/* This was an anonymous type that was never fixed up. */
|
||||
goto normal;
|
||||
|
||||
case 'X':
|
||||
/* SunPRO (3.0 at least) static variable encoding. */
|
||||
if (gdbarch_static_transform_name_p (gdbarch))
|
||||
goto normal;
|
||||
/* fall through */
|
||||
|
||||
default:
|
||||
complaint (_("Unknown C++ symbol name `%s'"),
|
||||
string);
|
||||
@ -1186,23 +1180,6 @@ define_symbol (CORE_ADDR valu, const char *string, int desc, int type,
|
||||
SYMBOL_TYPE (sym) = read_type (&p, objfile);
|
||||
SYMBOL_ACLASS_INDEX (sym) = LOC_STATIC;
|
||||
SET_SYMBOL_VALUE_ADDRESS (sym, valu);
|
||||
if (gdbarch_static_transform_name_p (gdbarch)
|
||||
&& gdbarch_static_transform_name (gdbarch, sym->linkage_name ())
|
||||
!= sym->linkage_name ())
|
||||
{
|
||||
struct bound_minimal_symbol msym;
|
||||
|
||||
msym = lookup_minimal_symbol (sym->linkage_name (), NULL, objfile);
|
||||
if (msym.minsym != NULL)
|
||||
{
|
||||
const char *new_name = gdbarch_static_transform_name
|
||||
(gdbarch, sym->linkage_name ());
|
||||
|
||||
sym->set_linkage_name (new_name);
|
||||
SET_SYMBOL_VALUE_ADDRESS (sym,
|
||||
BMSYMBOL_VALUE_ADDRESS (msym));
|
||||
}
|
||||
}
|
||||
SYMBOL_DOMAIN (sym) = VAR_DOMAIN;
|
||||
add_symbol_to_list (sym, get_file_symbols ());
|
||||
break;
|
||||
@ -1367,24 +1344,8 @@ define_symbol (CORE_ADDR valu, const char *string, int desc, int type,
|
||||
SYMBOL_TYPE (sym) = read_type (&p, objfile);
|
||||
SYMBOL_ACLASS_INDEX (sym) = LOC_STATIC;
|
||||
SET_SYMBOL_VALUE_ADDRESS (sym, valu);
|
||||
if (gdbarch_static_transform_name_p (gdbarch)
|
||||
&& gdbarch_static_transform_name (gdbarch, sym->linkage_name ())
|
||||
!= sym->linkage_name ())
|
||||
{
|
||||
struct bound_minimal_symbol msym;
|
||||
|
||||
msym = lookup_minimal_symbol (sym->linkage_name (), NULL, objfile);
|
||||
if (msym.minsym != NULL)
|
||||
{
|
||||
const char *new_name = gdbarch_static_transform_name
|
||||
(gdbarch, sym->linkage_name ());
|
||||
|
||||
sym->set_linkage_name (new_name);
|
||||
SET_SYMBOL_VALUE_ADDRESS (sym, BMSYMBOL_VALUE_ADDRESS (msym));
|
||||
}
|
||||
}
|
||||
SYMBOL_DOMAIN (sym) = VAR_DOMAIN;
|
||||
add_symbol_to_list (sym, get_local_symbols ());
|
||||
add_symbol_to_list (sym, get_local_symbols ());
|
||||
break;
|
||||
|
||||
case 'v':
|
||||
|
Reference in New Issue
Block a user