diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-22 19:22:44 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-22 19:22:44 +0000 |
commit | c2b0a2291a7d54a96c2f7a7b17b917902f5b64e0 (patch) | |
tree | 130277de7ac8ffa1b67e91684469deb51d48c85d /gdb/dwarf2read.c | |
parent | 7286ec15a4e2c255d89bac7a202912cc64d32f36 (diff) | |
download | gdb-c2b0a2291a7d54a96c2f7a7b17b917902f5b64e0.zip gdb-c2b0a2291a7d54a96c2f7a7b17b917902f5b64e0.tar.gz gdb-c2b0a2291a7d54a96c2f7a7b17b917902f5b64e0.tar.bz2 |
gdb/
* dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
DW_TAG_constant.
gdb/testsuite/
* gdb.fortran/module.exp (fully qualified name of DW_TAG_constant):
New test.
* gdb.fortran/module.f90 (mod1) <var_const>: New constant.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 082400e..8a87b7b 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4614,6 +4614,7 @@ die_needs_namespace (struct die_info *die, struct dwarf2_cu *cu) return 1; case DW_TAG_variable: + case DW_TAG_constant: /* We only need to prefix "globally" visible variables. These include any variable marked with DW_AT_external or any variable that lives in a namespace. [Variables in anonymous namespaces |