Add support reading D modules from DWARF
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 14 Jul 2015 18:31:21 +0000 (20:31 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 14 Jul 2015 18:31:21 +0000 (20:31 +0200)
commit452802827f0870df0c8ece81a7e098d94cee4536
treefd2c6e2b3800bbca5075dce49de0af5bb03f469c
parentcfa68bae4271a51a4402f8ca7ccdc014be95d79d
Add support reading D modules from DWARF

Extends existing support for namespaces/modules in C++/Fortran/Java to
include language_d too.  However unlike Fortran/C++, the separator for
qualified names is a single dot.

2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>

* dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
also test for language_d.
(dwarf2_compute_name): Likewise.
(read_func_scope): Likewise.
(read_structure_type): Likewise.
(determine_prefix): Likewise.
(read_import_statement): Use dot as the separator for language_d.
(typename_concat): Likewise, but don't prefix the D main function.
gdb/ChangeLog
gdb/dwarf2read.c