[gdb/testsuite] Fix -wrap in presence of -prompt in gdb_test_multiple
authorTom de Vries <tdevries@suse.de>
Mon, 24 Apr 2023 20:08:53 +0000 (22:08 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 24 Apr 2023 20:08:53 +0000 (22:08 +0200)
commit4fa173cfd79f8a00c091f8a5a119bc2b064cc716
tree86500b55fffd9c3be37d4b8660cdd5cfef51ce91
parent41966608a1ee2bde59772c41aae6ec95b309ff26
[gdb/testsuite] Fix -wrap in presence of -prompt in gdb_test_multiple

While writing a gdb_test_multiple call in a test-case I tried to use -wrap in
combination with -prompt and found out that it doesn't work, because -wrap uses
"$gdb_prompt $" instead of $prompt_regexp.

Fix this by making -wrap use $prompt_regexp.

Tested on x86_64-linux.
gdb/testsuite/gdb.testsuite/gdb-test.exp
gdb/testsuite/lib/gdb.exp