From 485d9cab65acb49838c9c6e5df7fa9ebfcfceaf9 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 22 Oct 2024 09:23:25 +0200 Subject: [PATCH] [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. --- gdb/testsuite/gdb.dwarf2/self-spec.exp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.dwarf2/self-spec.exp b/gdb/testsuite/gdb.dwarf2/self-spec.exp index 9bb4064874f..6ed3cf32726 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" -- 2.47.3