* dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
authorJoel Brobecker <brobecker@gnat.com>
Tue, 15 Feb 2005 17:13:06 +0000 (17:13 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 15 Feb 2005 17:13:06 +0000 (17:13 +0000)
        SYMBOL_NATURAL_NAME to set type names.

gdb/ChangeLog
gdb/dwarf2read.c

index 12de4c891d727147ff745afc41453d01efe7481a..87c7d96d241c1e189bd92a421672874c148315b8 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-15  Joel Brobecker  <brobecker@gnat.com>
+
+       From Paul Hilfinger <hilfinger@gnat.com>
+       * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
+       SYMBOL_NATURAL_NAME to set type names.
+
 2005-02-15  Andrew Cagney  <cagney@gnu.org>
 
        Mark up add_com, add_info and add_prefix_cmd.
index ecef2b88ffd6ac28c6bf6db9f478f47b2eed516f..bc430468564ee060cd944a902dc6c2e4b9b609d1 100644 (file)
@@ -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);
              }
          }