gdb.trace: Fix unavailable.exp if last register happens to be PC.
authorMarcin Kościelnicki <koriakin@0x04.net>
Mon, 22 Feb 2016 07:28:38 +0000 (08:28 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Mon, 22 Feb 2016 17:56:51 +0000 (18:56 +0100)
commit4000e47e2f3860a85a9023f3fe5950c8cc6fa507
treecca7bd97d35a1f4a58392f6b24e0d992dfa6df35
parentac46107c5c781894e013b10cd9fb5c98a8393d26
gdb.trace: Fix unavailable.exp if last register happens to be PC.

unavailable.exp executes "info registers", expecting to find at least
two instances of "<unavailable>".  However, it uses
"<unavailable>.*<unavailable>" as the pattern, which doesn't match
when the last register happens to be available (eg. PC).  Change it
to ".*<unavailable>.*<unavailable>.*" instead.

Noticed on s390, no regression on x86_64.

gdb/testsuite/ChangeLog:

* gdb.trace/unavailable.exp (gdb_unavailable_registers_test_1): Fix
info registers pattern.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/unavailable.exp