aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2007-01-23 23:57:47 +0000
committerJoel Brobecker <brobecker@gnat.com>2007-01-23 23:57:47 +0000
commit8c6860bbe08262e2f7a6221f7dba4cd03ce03ec5 (patch)
treefd15570c2dbae68f66dd1863fb8118d64c863bd1 /gdb/dwarf2read.c
parent0de5dc4b385c3eb5c7582ff70c8e46f26e3114ed (diff)
downloadgdb-8c6860bbe08262e2f7a6221f7dba4cd03ce03ec5.zip
gdb-8c6860bbe08262e2f7a6221f7dba4cd03ce03ec5.tar.gz
gdb-8c6860bbe08262e2f7a6221f7dba4cd03ce03ec5.tar.bz2
* dwarf2read.c (add_partial_symbol): Create an extra partial
symbol in the VAR_DOMAIN for Ada structures, unions or enums. (new_symbol): Likewise for symbols.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 010b0bc..9894bf0 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2004,7 +2004,8 @@ add_partial_symbol (struct partial_die_info *pdi, struct dwarf2_cu *cu)
0, (CORE_ADDR) 0, cu->language, objfile);
if (cu->language == language_cplus
- || cu->language == language_java)
+ || cu->language == language_java
+ || cu->language == language_ada)
{
/* For C++ and Java, these implicitly act as typedefs as well. */
add_psymbol_to_list (actual_name, strlen (actual_name),
@@ -7231,7 +7232,8 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
defines a typedef for the class. Synthesize a typedef symbol
so that "ptype foo" works as expected. */
if (cu->language == language_cplus
- || cu->language == language_java)
+ || cu->language == language_java
+ || cu->language == language_ada)
{
struct symbol *typedef_sym = (struct symbol *)
obstack_alloc (&objfile->objfile_obstack,