OSDN Git Service

* dwarf2read.c (processing_current_prefix): Delete static
authordrow <drow>
Thu, 21 Aug 2008 18:57:33 +0000 (18:57 +0000)
committerdrow <drow>
Thu, 21 Aug 2008 18:57:33 +0000 (18:57 +0000)
commit24789f2461dacea48dbd2156714b2ee65569a614
treedf0ec4f96312ad43c918fdced59bdf323bed3754
parent568aaf12b899ccc6a365fe360b1a2a098c955976
* dwarf2read.c (processing_current_prefix): Delete static
variable.
(process_full_comp_unit): Do not set processing_current_prefix.
(dwarf2_full_name): New function.
(read_func_scope): Do not set processing_current_prefix.  Use
determine_prefix.
(read_structure_type): Do not set processing_current_prefix.  Remove
unused inner cleanup.
(process_structure_scope): Do not set processing_current_prefix.
(read_enumeration_type): Use dwarf2_full_name.
(determine_class_name): Return a const char *.  Put the result
on the objfile obstack.  Use dwarf2_full_name.
(read_namespace_type): New function.
(read_namespace): Do not create the type here.  Use
determine_prefix.
(read_typedef): Use dwarf2_full_name.  Do not pass the name
to init_type.
(read_base_type): Do not pass the name to init_type.  Handle
TYPE_FLAG_NOSIGN.
(read_unspecified_type): Do not pass the name to init_type.
(new_symbol): Use dwarf2_full_name instead of
processing_current_prefix.
(read_type_die): Do not set processing_current_prefix.  Handle
DW_TAG_namespace.
(determine_prefix): Handle specifications.  Return the result
on the objfile obstack.  Handle unions correctly.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/gdb.cp/classes.exp