diff options
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index d472d3e..a51fe9d 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -1680,9 +1680,11 @@ read_dbx_symtab (struct objfile *objfile) { case 'S': nlist.n_value += ANOFFSET (objfile->section_offsets, data_sect_index); -#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, |