From c99444905edcea5e4b053af6cc62313f8caf98fd Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 3 Dec 2024 23:03:03 +0100 Subject: [PATCH] [gdb/testsuite] Fix DUPLICATE in gdb.arch/pr25124.exp With test-case gdb.arch/pr25124.exp, I run into: ... PASS: gdb.arch/pr25124.exp: disassemble thumb instruction (1st try) PASS: gdb.arch/pr25124.exp: disassemble thumb instruction (2nd try) DUPLICATE: gdb.arch/pr25124.exp: disassemble thumb instruction (2nd try) ... Fix this by using a comma instead of parentheses. Tested on arm-linux. Approved-By: Tom Tromey --- gdb/testsuite/gdb.arch/pr25124.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.arch/pr25124.exp b/gdb/testsuite/gdb.arch/pr25124.exp index 3bf08a178ec..26cfc1368a0 100644 --- a/gdb/testsuite/gdb.arch/pr25124.exp +++ b/gdb/testsuite/gdb.arch/pr25124.exp @@ -30,7 +30,7 @@ clean_restart $binfile # Check if the disassemble ouput is correct. gdb_test "x /i main+8" \ "$hex :\[ \t\]+bx\[ \t\]+lr" \ - "disassemble thumb instruction (1st try)" + "disassemble thumb instruction, 1st try" # Reload the symbol file to trigger the bug. gdb_load ${binfile} @@ -38,4 +38,4 @@ gdb_load ${binfile} # Check if the disassemble output is the same as above. gdb_test "x /i main+8" \ "$hex :\[ \t\]+bx\[ \t\]+lr" \ - "disassemble thumb instruction (2nd try)" + "disassemble thumb instruction, 2nd try" -- 2.47.3