From 2e917d2873a4ebffb1b7e8a8c043af65dfb5b708 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 14 Aug 2025 22:19:22 +0200 Subject: [PATCH] [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: 'extended-r No process (asm) In: L?? PC: ?? ' FAIL: gdb.tui/basic.exp: status window: reverse ... because the regexp: ... gdb_assert { [regexp "^<.*>exec" $status] == 1 } \ ... tries to match: ... status line: 'exec No process (asm) In: L?? PC: ?? ' ... Fix this by updating the regexp to allow both exec and extended-r. Tested on x86_64-linux. Approved-By: Tom Tromey --- gdb/testsuite/gdb.tui/basic.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp index 48b90dabbf2..8ecc91a3a87 100644 --- a/gdb/testsuite/gdb.tui/basic.exp +++ b/gdb/testsuite/gdb.tui/basic.exp @@ -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" -- 2.47.3