I ran into:
...
(gdb) pipe maint print objfiles self-spec | grep c1^M
name: c1^M
canonical: c1^M
qualified: c1^M
[3] ((addrmap *) 0xfffedfc1f010)^M
(gdb) FAIL: gdb.dwarf2/self-spec.exp: class c1 in cooked index
...
Fix this by renaming the class from c1 to class1.
Tested on aarch64-linux.
# Check handling of self-referencing DIE.
declare_labels c1
c1: class_type {
- {name c1}
+ {name class1}
{specification :$c1}
}
require !readnow
-gdb_test "pipe maint print objfiles $testfile | grep c1" \
- " *qualified: *c1" \
+gdb_test "pipe maint print objfiles $testfile | grep class1" \
+ " *qualified: *class1" \
"class c1 in cooked index"
gdb_test "maint expand-symtabs"