[gdb/testsuite] Fix gdb.server/no-thread-db.exp with local-remote-host.exp
authorTom de Vries <tdevries@suse.de>
Tue, 18 Oct 2022 13:32:46 +0000 (15:32 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 18 Oct 2022 13:32:46 +0000 (15:32 +0200)
commit21b61fe24223da81fcc35d2dfd3893f01285e2a5
tree70106c015ec186fb0e6019f69ebf7799ac9c7ed8
parent95dcf7dff68f1455b3576e291da60a1d949560fb
[gdb/testsuite] Fix gdb.server/no-thread-db.exp with local-remote-host.exp

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 file \
  $HOME/no-thread-db:^M
Remote target failed to process qGetTLSAddr request^M
(gdb) FAIL: gdb.server/no-thread-db.exp: print foo
...

The regexp in the test-case expects the full $binfile pathname, but we have
instead $HOME/no-thread-db.

Fix this by making the regexp less strict.

Tested on x86_64-linux.
gdb/testsuite/gdb.server/no-thread-db.exp