[gdb/testsuite] Fix gdb.base/coredump-filter-build-id.exp with older eu-unstrip
authorTom de Vries <tdevries@suse.de>
Thu, 9 Sep 2021 11:55:02 +0000 (13:55 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 9 Sep 2021 11:55:02 +0000 (13:55 +0200)
commit5e6741a157e645d4d5bce1cabae5f89117809b40
tree2074ce53c4d7139b703d109256965f65aa4443b8
parent127e9f85498f084dfa56c3ae6d3d185fc280692f
[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/ChangeLog:

2021-09-09  Tom de Vries  <tdevries@suse.de>

* gdb.base/coredump-filter-build-id.exp: Handle older eu-unstrip.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/coredump-filter-build-id.exp
This page took 0.025683 seconds and 4 git commands to generate.