aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2005-02-15 17:13:06 +0000
committerJoel Brobecker <brobecker@gnat.com>2005-02-15 17:13:06 +0000
commit77ef991de16155506c1057b349e482a86c376df8 (patch)
tree9aa6bec7cb50fe0d9d7cb4faf31434ebb19d4925 /gdb/dwarf2read.c
parent1bedd215175652ad3e82d2fb731f1d62dd44acf8 (diff)
downloadgdb-77ef991de16155506c1057b349e482a86c376df8.zip
gdb-77ef991de16155506c1057b349e482a86c376df8.tar.gz
gdb-77ef991de16155506c1057b349e482a86c376df8.tar.bz2
* dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
SYMBOL_NATURAL_NAME to set type names.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index ecef2b8..bc43046 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -6924,7 +6924,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
this objfile, so we don't need to duplicate it for
the type. */
if (TYPE_NAME (SYMBOL_TYPE (sym)) == 0)
- TYPE_NAME (SYMBOL_TYPE (sym)) = SYMBOL_NATURAL_NAME (sym);
+ TYPE_NAME (SYMBOL_TYPE (sym)) = SYMBOL_SEARCH_NAME (sym);
add_symbol_to_list (typedef_sym, list_to_add);
}
}