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)
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

index 5676cac9aa86885dfe264298a6aa8c3b9d9c37d4..8acc5c59ea1c7d20f3786ba716be230b6d71f6e6 100644 (file)
@@ -1,3 +1,8 @@
+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.
index e257c2e745bcad79c85b33a3d2519a207cbc2841..343ac6434d3918042b6510df5c950bc370bd4237 100644 (file)
@@ -330,7 +330,7 @@ proc gdb_unavailable_registers_test_1 { } {
     test_register "\$pc"
 
     gdb_test "info registers" \
-       "<unavailable>.*<unavailable>" \
+       ".*<unavailable>.*<unavailable>.*" \
        "info registers, multiple registers not available"
 
     gdb_test "info registers \$$spreg" \