]>
Commit | Line | Data |
---|---|---|
3a58abaf AM |
1 | Original patch was: |
2 | http://sourceware.org/ml/gdb-patches/2007-12/msg00397.html | |
3 | http://sourceware.org/ml/gdb-cvs/2007-12/msg00123.html | |
4 | ||
5 | extended for the RHEL safety: | |
6 | ||
7 | 2007-12-28 Jan Kratochvil <jan.kratochvil@redhat.com> | |
8 | ||
9 | * dwarf2read.c (fixup_partial_die): Provide full | |
10 | `DW_TAG_class_type'-type backing for `DW_TAG_interface_type', even for | |
11 | namespaces which should not apply for Java `DW_TAG_interface_type'. | |
12 | ||
13 | 2008-02-24 Jan Kratochvil <jan.kratochvil@redhat.com> | |
14 | ||
15 | Port to GDB-6.8pre. | |
16 | ||
17 | Index: ./gdb/dwarf2read.c | |
18 | =================================================================== | |
19 | RCS file: /cvs/src/src/gdb/dwarf2read.c,v | |
20 | retrieving revision 1.245 | |
21 | diff -u -p -r1.245 dwarf2read.c | |
22 | --- ./gdb/dwarf2read.c 26 Dec 2007 12:36:18 -0000 1.245 | |
23 | +++ ./gdb/dwarf2read.c 27 Dec 2007 23:25:49 -0000 | |
24 | @@ -5887,7 +5887,8 @@ fixup_partial_die (struct partial_die_in | |
25 | ||
26 | /* Set default names for some unnamed DIEs. */ | |
27 | if (part_die->name == NULL && (part_die->tag == DW_TAG_structure_type | |
28 | - || part_die->tag == DW_TAG_class_type)) | |
29 | + || part_die->tag == DW_TAG_class_type | |
30 | + || part_die->tag == DW_TAG_interface_type)) | |
31 | part_die->name = "(anonymous class)"; | |
32 | ||
33 | if (part_die->name == NULL && part_die->tag == DW_TAG_namespace) | |
34 | @@ -5895,6 +5896,7 @@ fixup_partial_die (struct partial_die_in | |
35 | ||
36 | if (part_die->tag == DW_TAG_structure_type | |
37 | || part_die->tag == DW_TAG_class_type | |
38 | + || part_die->tag == DW_TAG_interface_type | |
39 | || part_die->tag == DW_TAG_union_type) | |
40 | guess_structure_name (part_die, cu); | |
41 | } |