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.
+2016-02-22 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * gdb.trace/unavailable.exp (gdb_unavailable_registers_test_1): Fix
+ info registers pattern.
+
2016-02-18 Iain Buclaw <ibuclaw@gdcproject.org>
* lib/future.exp: Add D support.
test_register "\$pc"
gdb_test "info registers" \
- "<unavailable>.*<unavailable>" \
+ ".*<unavailable>.*<unavailable>.*" \
"info registers, multiple registers not available"
gdb_test "info registers \$$spreg" \