diff options
author | Tom de Vries <tdevries@suse.de> | 2024-10-22 09:23:25 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-10-22 09:23:25 +0200 |
commit | 485d9cab65acb49838c9c6e5df7fa9ebfcfceaf9 (patch) | |
tree | fed0a4f451878364aef6078c159f25681d45d758 | |
parent | 9858f29e6a9ebc02a70e6e31d54404f13fbf4b10 (diff) | |
download | binutils-485d9cab65acb49838c9c6e5df7fa9ebfcfceaf9.zip binutils-485d9cab65acb49838c9c6e5df7fa9ebfcfceaf9.tar.gz binutils-485d9cab65acb49838c9c6e5df7fa9ebfcfceaf9.tar.bz2 |
[gdb/testsuite] Improve class name in gdb.dwarf2/self-spec.exp
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.
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/self-spec.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/self-spec.exp b/gdb/testsuite/gdb.dwarf2/self-spec.exp index 9bb4064..6ed3cf3 100644 --- a/gdb/testsuite/gdb.dwarf2/self-spec.exp +++ b/gdb/testsuite/gdb.dwarf2/self-spec.exp @@ -30,7 +30,7 @@ Dwarf::assemble $asm_file { # Check handling of self-referencing DIE. declare_labels c1 c1: class_type { - {name c1} + {name class1} {specification :$c1} } @@ -59,8 +59,8 @@ require {string eq $index ""} 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" |