[gdb/testsuite] Fix gdb.base/coredump-filter-build-id.exp with older eu-unstrip
authorTom de Vries <tdevries@suse.de>
Thu, 9 Sep 2021 10:29:40 +0000 (12:29 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 9 Sep 2021 10:29:40 +0000 (12:29 +0200)
commit8570b2b884139bc071895ccfcb41e5686acdf7b8
tree236b5f5439576f14c669677d3d40451d2e917c7b
parent5b99c5718f1c0a4937b4bcce1735311c39578002
[gdb/testsuite] Fix gdb.base/coredump-filter-build-id.exp with older eu-unstrip

On openSUSE Leap 42.3 with eu-unstrip 0.158, we run into:
...
(gdb) PASS: gdb.base/coredump-filter-build-id.exp: save corefile
First line of eu-unstrip: \
  0x400000+0x202000 f4ae8502bd6a14770182382316bc595e9dc6f08b@0x400284 - - [exe]
FAIL: gdb.base/coredump-filter-build-id.exp: gcore dumped mapping with build-id
...

The test expects an actual file name instead of '[exe]', but that only got
introduced with eu-unstrip 0.161.  Before it printed '[exe]' or '[pie]'.

Fix this by updating the regexp.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/coredump-filter-build-id.exp