From: Marcin Kościelnicki Date: Mon, 22 Feb 2016 07:28:38 +0000 (+0100) Subject: gdb.trace: Fix unavailable.exp if last register happens to be PC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4000e47e2f3860a85a9023f3fe5950c8cc6fa507;p=binutils-gdb.git 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 "". However, it uses ".*" as the pattern, which doesn't match when the last register happens to be available (eg. PC). Change it to ".*.*.*" 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5676cac9aa8..8acc5c59ea1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-02-22 Marcin Kościelnicki + + * gdb.trace/unavailable.exp (gdb_unavailable_registers_test_1): Fix + info registers pattern. + 2016-02-18 Iain Buclaw * lib/future.exp: Add D support. diff --git a/gdb/testsuite/gdb.trace/unavailable.exp b/gdb/testsuite/gdb.trace/unavailable.exp index e257c2e745b..343ac6434d3 100644 --- a/gdb/testsuite/gdb.trace/unavailable.exp +++ b/gdb/testsuite/gdb.trace/unavailable.exp @@ -330,7 +330,7 @@ proc gdb_unavailable_registers_test_1 { } { test_register "\$pc" gdb_test "info registers" \ - ".*" \ + ".*.*.*" \ "info registers, multiple registers not available" gdb_test "info registers \$$spreg" \