2
1

690-debian_member-field-symtab.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Status: unsubmitted
  2. This patch was for Debian bug #239535. It needs to be tested, and
  3. submitted.
  4. Index: gdb-6.3/gdb/valops.c
  5. ===================================================================
  6. --- gdb-6.3.orig/gdb/valops.c 2004-11-09 22:51:07.000000000 -0500
  7. +++ gdb-6.3/gdb/valops.c 2004-11-10 00:43:54.036837699 -0500
  8. @@ -2314,8 +2314,10 @@ check_field_in (struct type *type, const
  9. return 1;
  10. }
  11. + /* Check each baseclass. Call check_typedef, which will follow typedefs
  12. + and do opaque/stub type resolution. */
  13. for (i = TYPE_N_BASECLASSES (type) - 1; i >= 0; i--)
  14. - if (check_field_in (TYPE_BASECLASS (type, i), name))
  15. + if (check_field_in (check_typedef (TYPE_BASECLASS (type, i)), name))
  16. return 1;
  17. return 0;
  18. Index: gdb-6.3/gdb/dwarf2read.c
  19. ===================================================================
  20. --- gdb-6.3.orig/gdb/dwarf2read.c 2004-10-15 20:41:00.000000000 -0400
  21. +++ gdb-6.3/gdb/dwarf2read.c 2004-11-10 00:46:21.970935829 -0500
  22. @@ -2099,8 +2099,8 @@ guess_structure_name (struct partial_die
  23. strlen (actual_class_name),
  24. &cu->comp_unit_obstack);
  25. xfree (actual_class_name);
  26. + break;
  27. }
  28. - break;
  29. }
  30. child_pdi = child_pdi->die_sibling;