]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix gdb.tui/basic.exp on native-extended-gdbserver
authorTom de Vries <tdevries@suse.de>
Thu, 14 Aug 2025 20:19:22 +0000 (22:19 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 14 Aug 2025 20:19:22 +0000 (22:19 +0200)
commit2e917d2873a4ebffb1b7e8a8c043af65dfb5b708
tree9023579fb9a5690abe55098ec34c0cb06806b6e8
parent713b99a9398cfe9ba7d96467afc600cf1f756bd2
[gdb/testsuite] Fix gdb.tui/basic.exp on native-extended-gdbserver

With test-case gdb.tui/basic.exp and target board native-extended-gdbserver I
get:
...
status line: '<reverse:1>extended-r No process (asm) In:                                    L??   PC: ?? <reverse:0>'
FAIL: gdb.tui/basic.exp: status window: reverse
...
because the regexp:
...
gdb_assert { [regexp "^<.*>exec" $status] == 1 } \
...
tries to match:
...
status line: '<reverse:1>exec No process (asm) In:                                          L??   PC: ?? <reverse:0>'
...

Fix this by updating the regexp to allow both exec and extended-r.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.tui/basic.exp