From: Andrew Burgess Date: Fri, 21 Nov 2025 10:58:28 +0000 (+0000) Subject: gdb/testsuite: avoid pointer values in test names X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bf5a1fb77ef9c25328f925e3c2e3b493bf38c9e;p=thirdparty%2Fbinutils-gdb.git gdb/testsuite: avoid pointer values in test names A test added in: commit 91eee81d23537366bb6072c66f662ab46d88380a Date: Tue Jan 21 17:22:04 2025 +0000 gdb: include NT_I386_TLS note in generated core files includes a pointer value in the test name. The value changes from run to run making it harder to compare test results. Fix this by giving the test an actual name. There's no change to what is being tested with the commit. --- diff --git a/gdb/testsuite/gdb.arch/i386-tls-regs.exp b/gdb/testsuite/gdb.arch/i386-tls-regs.exp index 378a8e85f02..289433c4d43 100644 --- a/gdb/testsuite/gdb.arch/i386-tls-regs.exp +++ b/gdb/testsuite/gdb.arch/i386-tls-regs.exp @@ -87,7 +87,8 @@ proc_with_prefix test_tls_reg_availability {} { set new_val_str "{$val0, $val1, $val2, $val3}" - gdb_test_no_output "set \$i386_tls_gdt_1 = $new_val_str" + gdb_test_no_output "set \$i386_tls_gdt_1 = $new_val_str" \ + "set value of \$i386_tls_gdt_1 register" set re [string_to_regexp $new_val_str] gdb_test "print /x \$i386_tls_gdt_1" " = $re" }