PR c++/11961:
* dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>: Don't set TYPE_NAME on the type.
This commit is contained in:
parent
8bbed40521
commit
6438229074
|
@ -1,3 +1,9 @@
|
||||||
|
2010-08-31 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
PR c++/11961:
|
||||||
|
* dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
|
||||||
|
Don't set TYPE_NAME on the type.
|
||||||
|
|
||||||
2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
|
2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
|
||||||
|
|
||||||
* infrun.c (set_exec_direction_func): Error out if target does not
|
* infrun.c (set_exec_direction_func): Error out if target does not
|
||||||
|
|
|
@ -10729,20 +10729,21 @@ new_symbol_full (struct die_info *die, struct type *type, struct dwarf2_cu *cu,
|
||||||
&& (cu->language == language_cplus
|
&& (cu->language == language_cplus
|
||||||
|| cu->language == language_java)
|
|| cu->language == language_java)
|
||||||
? &global_symbols : cu->list_in_scope);
|
? &global_symbols : cu->list_in_scope);
|
||||||
}
|
|
||||||
|
|
||||||
/* The semantics of C++ state that "struct foo { ... }" also
|
/* The semantics of C++ state that "struct foo {
|
||||||
defines a typedef for "foo". A Java class declaration also
|
... }" also defines a typedef for "foo". A Java
|
||||||
defines a typedef for the class. */
|
class declaration also defines a typedef for the
|
||||||
if (cu->language == language_cplus
|
class. */
|
||||||
|| cu->language == language_java
|
if (cu->language == language_cplus
|
||||||
|| cu->language == language_ada)
|
|| cu->language == language_java
|
||||||
{
|
|| cu->language == language_ada)
|
||||||
/* The symbol's name is already allocated along with
|
{
|
||||||
this objfile, so we don't need to duplicate it for
|
/* The symbol's name is already allocated along
|
||||||
the type. */
|
with this objfile, so we don't need to
|
||||||
if (TYPE_NAME (SYMBOL_TYPE (sym)) == 0)
|
duplicate it for the type. */
|
||||||
TYPE_NAME (SYMBOL_TYPE (sym)) = SYMBOL_SEARCH_NAME (sym);
|
if (TYPE_NAME (SYMBOL_TYPE (sym)) == 0)
|
||||||
|
TYPE_NAME (SYMBOL_TYPE (sym)) = SYMBOL_SEARCH_NAME (sym);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue