From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id A75DA385800F; Tue, 18 Oct 2022 13:33:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A75DA385800F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666099981; bh=OMyA9Gm4Hiw+j5vbbn8MRcgwyijS7WuXIZCmQa+Rapg=; h=From:To:Subject:Date:From; b=UVyO2+sG3rJN62BQZ8/xK2aIPhzAFrs0K0oQi6ERIjeTwjJn9k9urtmxyT3UIOZ4w sUL30Ayd2mYrcTUbbsf4MmY+dVGIa60s4b3fzl/O2HoaoAXS0BCsuNwMKHhL0RLqQ/ bC0ZMAErKjm/HNnym92i00DO8rANNWm+ELJSMFkM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Fix gdb.server/no-thread-db.exp with local-remote-host.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 95dcf7dff68f1455b3576e291da60a1d949560fb X-Git-Newrev: 21b61fe24223da81fcc35d2dfd3893f01285e2a5 Message-Id: <20221018133301.A75DA385800F@sourceware.org> Date: Tue, 18 Oct 2022 13:33:01 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D21b61fe24223= da81fcc35d2dfd3893f01285e2a5 commit 21b61fe24223da81fcc35d2dfd3893f01285e2a5 Author: Tom de Vries Date: Tue Oct 18 15:32:46 2022 +0200 [gdb/testsuite] Fix gdb.server/no-thread-db.exp with local-remote-host.= exp =20 With test-case gdb.server/no-thread-db.exp and host board local-remote-= host.exp with a tentative fix for PR29697 I run into: ... (gdb) print foo^M Cannot find thread-local storage for Thread 29613.29613, executable fil= e \ $HOME/no-thread-db:^M Remote target failed to process qGetTLSAddr request^M (gdb) FAIL: gdb.server/no-thread-db.exp: print foo ... =20 The regexp in the test-case expects the full $binfile pathname, but we = have instead $HOME/no-thread-db. =20 Fix this by making the regexp less strict. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.server/no-thread-db.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.server/no-thread-db.exp b/gdb/testsuite/gdb.= server/no-thread-db.exp index db61c61ccbc..16c1a0d9ca1 100644 --- a/gdb/testsuite/gdb.server/no-thread-db.exp +++ b/gdb/testsuite/gdb.server/no-thread-db.exp @@ -59,5 +59,6 @@ gdb_breakpoint ${srcfile}:[gdb_get_line_number "after tls= assignment"] gdb_continue_to_breakpoint "after tls assignment" =20 # Printing a tls variable should fail gracefully without a libthread_db. +set re_exec "\[^\r\n\]*[file tail $binfile]" gdb_test "print foo" \ - "Cannot find thread-local storage for Thread \[^,\]+, executable file = ${binfile}:\[\r\n\]+Remote target failed to process qGetTLSAddr request" + "Cannot find thread-local storage for Thread \[^,\]+, executable file = $re_exec:\[\r\n\]+Remote target failed to process qGetTLSAddr request"