6fcb74ef6e
- Archer backport: b8d3bea36b137effc929e02c4dadf73716cb330b - Ignore explicit die representing global scope '::' (gcc 4.1 bug). - Archer backport: c2d5c4a39b10994d86d8f2f90dfed769e8f216f3 - Fix parsing DW_AT_const_value using DW_FORM_string - Archer backport: 8d9ab68fc0955c9de6320bec2821a21e3244600d db41e11ae0a3aec7120ad6ce86450d838af74dd6 - Fix Fortran modules/namespaces parsing (but no change was visible in F11). - Archer backport: 000db8b7bfef8581ef099ccca8689cfddfea1be8 - Fix "some Python error when displaying some C++ objects" (BZ 504356). - testsuite: Support new rpmbuild option: --with parallel - testsuite: gdb-orphanripper.c: Fix uninitialized `termios.c_line'. - Fix crashes due to (missing) varobj revalidation, for VLA (for BZ 377541). - Archer backport: 58dcda94ac5d6398f47382505e9d3d9d866d79bf f3de7bbd655337fe6705aeaafcc970deff3dd5d5 - Implement Fortran modules namespaces (BZ 466118). - Fix crash in the charset support.
77 lines
2.8 KiB
Diff
77 lines
2.8 KiB
Diff
Index: gdb-6.8.50.20090302/gdb/dwarf2read.c
|
|
===================================================================
|
|
--- gdb-6.8.50.20090302.orig/gdb/dwarf2read.c 2009-05-09 20:04:27.000000000 +0200
|
|
+++ gdb-6.8.50.20090302/gdb/dwarf2read.c 2009-05-09 20:04:56.000000000 +0200
|
|
@@ -2029,6 +2029,7 @@ scan_partial_symbols (struct partial_die
|
|
add_partial_subprogram (pdi, lowpc, highpc, need_pc, cu);
|
|
break;
|
|
case DW_TAG_variable:
|
|
+ case DW_TAG_constant:
|
|
case DW_TAG_typedef:
|
|
case DW_TAG_union_type:
|
|
if (!pdi->is_declaration)
|
|
@@ -2244,6 +2245,7 @@ add_partial_symbol (struct partial_die_i
|
|
}
|
|
break;
|
|
case DW_TAG_variable:
|
|
+ case DW_TAG_constant:
|
|
if (pdi->is_external)
|
|
{
|
|
/* Global Variable.
|
|
@@ -4272,7 +4274,8 @@ dwarf2_add_field (struct field_info *fip
|
|
fip->non_public_fields = 1;
|
|
}
|
|
}
|
|
- else if (die->tag == DW_TAG_member || die->tag == DW_TAG_variable)
|
|
+ else if (die->tag == DW_TAG_member || die->tag == DW_TAG_variable
|
|
+ || die->tag == DW_TAG_constant)
|
|
{
|
|
/* C++ static member. */
|
|
|
|
@@ -4762,7 +4765,8 @@ read_structure_type (struct die_info *di
|
|
while (child_die && child_die->tag)
|
|
{
|
|
if (child_die->tag == DW_TAG_member
|
|
- || child_die->tag == DW_TAG_variable)
|
|
+ || child_die->tag == DW_TAG_variable
|
|
+ || child_die->tag == DW_TAG_constant)
|
|
{
|
|
/* NOTE: carlton/2002-11-05: A C++ static data member
|
|
should be a DW_TAG_member that is a declaration, but
|
|
@@ -4881,6 +4885,7 @@ process_structure_scope (struct die_info
|
|
{
|
|
if (child_die->tag == DW_TAG_member
|
|
|| child_die->tag == DW_TAG_variable
|
|
+ || child_die->tag == DW_TAG_constant
|
|
|| child_die->tag == DW_TAG_inheritance)
|
|
{
|
|
/* Do nothing. */
|
|
@@ -6656,6 +6661,7 @@ load_partial_dies (bfd *abfd, gdb_byte *
|
|
&& abbrev->tag != DW_TAG_subprogram
|
|
&& abbrev->tag != DW_TAG_lexical_block
|
|
&& abbrev->tag != DW_TAG_variable
|
|
+ && abbrev->tag != DW_TAG_constant
|
|
&& abbrev->tag != DW_TAG_namespace
|
|
&& abbrev->tag != DW_TAG_module
|
|
&& abbrev->tag != DW_TAG_member)
|
|
@@ -6764,6 +6770,7 @@ load_partial_dies (bfd *abfd, gdb_byte *
|
|
if (load_all
|
|
|| abbrev->tag == DW_TAG_subprogram
|
|
|| abbrev->tag == DW_TAG_variable
|
|
+ || abbrev->tag == DW_TAG_constant
|
|
|| abbrev->tag == DW_TAG_namespace
|
|
|| part_die->is_declaration)
|
|
{
|
|
@@ -8549,6 +8556,11 @@ new_symbol (struct die_info *die, struct
|
|
/* Do not add the symbol to any lists. It will be found via
|
|
BLOCK_FUNCTION from the blockvector. */
|
|
break;
|
|
+ case DW_TAG_constant:
|
|
+ SYMBOL_TYPE (sym) = make_cv_type (1,
|
|
+ TYPE_VOLATILE (SYMBOL_TYPE (sym)),
|
|
+ SYMBOL_TYPE (sym), NULL);
|
|
+ /* PASSTHRU */
|
|
case DW_TAG_variable:
|
|
/* Compilation with minimal debug info may result in variables
|
|
with missing type entries. Change the misleading `void' type
|