From: Tom de Vries Date: Thu, 14 Aug 2025 20:19:22 +0000 (+0200) Subject: [gdb/testsuite] Fix gdb.tui/basic.exp on native-extended-gdbserver X-Git-Tag: gdb-17-branchpoint~311 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e917d2873a4ebffb1b7e8a8c043af65dfb5b708;p=thirdparty%2Fbinutils-gdb.git [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 --- 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"