[gdb/testsuite] Fix gdb.dwarf2/forward-spec.exp with read1
authorTom de Vries <tdevries@suse.de>
Sat, 15 Jul 2023 08:09:40 +0000 (10:09 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 15 Jul 2023 08:09:40 +0000 (10:09 +0200)
commitb664df49f3d07941874dce0bd991c48a37cbf409
tree41cd933b341e35c6b2672f6fb03dd88056d118b8
parentc1f6762ce51fbcffb7ee3fdb1d794435fb19d43c
[gdb/testsuite] Fix gdb.dwarf2/forward-spec.exp with read1

When running test-case gdb.dwarf2/forward-spec.exp with check-read1 we run
into:
...
    parent:     ((cooked_index_entry *) 0xFAIL: <exp>: v has a parent
7fdc1c002ed0) [ns]^M
...

The problem is using regexps containing '.' to avoid escaping, which makes
them too generic.

Fix this by eliminating the '.' from the regexps.

Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/forward-spec.exp