aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dwarf2/read.c')
-rw-r--r--gdb/dwarf2/read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index ddf4b5b..d71bf91 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -8376,9 +8376,9 @@ add_partial_symbol (struct partial_die_info *pdi, struct dwarf2_cu *cu)
if (where.has_value ())
{
- psymbol.ginfo.compute_and_set_names (actual_name,
- built_actual_name != nullptr,
- objfile->per_bfd);
+ if (built_actual_name != nullptr)
+ actual_name = objfile->intern (actual_name);
+ psymbol.ginfo.set_linkage_name (actual_name);
add_psymbol_to_list (psymbol, *where, objfile);
}
}