diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-19 12:23:21 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-19 12:23:21 +0000 |
commit | 6f55d2040fa43e0a93ca91df0dee40e32cdc27f7 (patch) | |
tree | 955f070fb4c81e743f7acf5c933d0944f61c3de2 /gdb/xcoffread.c | |
parent | 8705b910d748c441daea79cbc824131bbf7502f9 (diff) | |
download | gdb-6f55d2040fa43e0a93ca91df0dee40e32cdc27f7.tar.gz |
* gdbarch.sh (static_transform_name): New gdbarch callback.
* gdbarch.c, gdbarch.h: Regenerate.
* dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
instead of STATIC_TRANSFORM_NAME.
* mdebugread.c (parse_partial_symbols): Likewise.
* stabsread.c (define_symbol): Likewise.
* xcoffread.c (scan_xcoff_symtab): Likewise.
* config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
(IS_STATIC_TRANSFORM_NAME): Remove.
* i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
* i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
(i386_sol2_init_abi): Install it.
* config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
(IS_STATIC_TRANSFORM_NAME): Remove.
* sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
* sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
(sparc32_sol2_init_abi): Install it.
* sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
* sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 49bf023679a..1aeddbc8d83 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -2581,9 +2581,11 @@ scan_xcoff_symtab (struct objfile *objfile) { case 'S': symbol.n_value += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile)); -#ifdef STATIC_TRANSFORM_NAME - namestring = STATIC_TRANSFORM_NAME (namestring); -#endif + + if (gdbarch_static_transform_name_p (current_gdbarch)) + namestring = gdbarch_static_transform_name + (current_gdbarch, namestring); + add_psymbol_to_list (namestring, p - namestring, VAR_DOMAIN, LOC_STATIC, &objfile->static_psymbols, |