]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[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)
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

index 48b90dabbf2a9a6c1788e655e59d488f015f81b3..8ecc91a3a87ae78bfe2142b2111fdd632c29a6eb 100644 (file)
@@ -116,5 +116,5 @@ verbose -log "status line: '$status'"
 
 # The status line uses standout, which may translate to different attributes
 # depending on the terminal settings.  Just check for at least one attribute.
-gdb_assert { [regexp "^<.*>exec" $status] == 1 } \
+gdb_assert { [regexp "^<.*>(exec|extended-r)" $status] == 1 } \
     "status window: reverse"