[gdb/testsuite] Fix gdb.mi/mi-disassemble.exp with check-read1
authorTom de Vries <tdevries@suse.de>
Thu, 20 Oct 2022 07:02:18 +0000 (09:02 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 20 Oct 2022 07:02:18 +0000 (09:02 +0200)
commit9c1c98cc632a7f4721e0b19edcb8f6bcd9347942
treee8cefc935329178c10c305ddd94bffb18aa6ad21
parent53707efa1b9d04a844c445a446c0523e509ac61c
[gdb/testsuite] Fix gdb.mi/mi-disassemble.exp with check-read1

With test-case gdb.mi/mi-disassemble.exp and check-read1 I run into:
...
FAIL: gdb.mi/mi-disassemble.exp: disassemble /b main
FAIL: gdb.mi/mi-disassemble.exp: get valueof "*((unsigned char *) 0x400549)"
...

The problem for both FAILs is that the output is parsed using
gdb_test_multiple, which has implicit clauses using $gdb_prompt, which can
match before the explicit clauses using $mi_gdb_prompt.

Fix this by passing -prompt "$mi_gdb_prompt$" to gdb_test_multiple.

Tested on x86-64-linux.
gdb/testsuite/gdb.mi/mi-disassemble.exp
gdb/testsuite/lib/mi-support.exp