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 <tom@tromey.com>
# Check if the disassemble ouput is correct.
gdb_test "x /i main+8" \
"$hex <main\\+8>:\[ \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}
# Check if the disassemble output is the same as above.
gdb_test "x /i main+8" \
"$hex <main\\+8>:\[ \t\]+bx\[ \t\]+lr" \
- "disassemble thumb instruction (2nd try)"
+ "disassemble thumb instruction, 2nd try"