diff options
author | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2019-01-14 17:28:53 -0200 |
---|---|---|
committer | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2019-01-14 17:28:53 -0200 |
commit | a7b8d68257c52281b08d9d858805e15667be6606 (patch) | |
tree | 72b9552845b87161d87584a638794366336108d8 | |
parent | f466c3053db1e075a8dd2583baa729c4edbbec0f (diff) | |
download | fsf-binutils-gdb-a7b8d68257c52281b08d9d858805e15667be6606.zip fsf-binutils-gdb-a7b8d68257c52281b08d9d858805e15667be6606.tar.gz fsf-binutils-gdb-a7b8d68257c52281b08d9d858805e15667be6606.tar.bz2 |
[PowerPC] Fix "info vector" test in gdb.arch/altivec-regs.exp
This patch fixes one of the tests in gdb.arch/altivec-regs.exp that
was passing an incorrect list to gdb_expect_list, which always
matched.
gdb/testsuite/ChangeLog:
2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
* gdb.arch/altivec-regs.exp: Fix the list passed to
gdb_expect_list when testing "info vector".
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/altivec-regs.exp | 43 |
2 files changed, 10 insertions, 38 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index a6a8ec0..621362f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * gdb.arch/altivec-regs.exp: Fix the list passed to + gdb_expect_list when testing "info vector". + 2019-01-12 Andrew Burgess <andrew.burgess@embecosm.com> * gdb.base/style.exp: Don't include path in testname. diff --git a/gdb/testsuite/gdb.arch/altivec-regs.exp b/gdb/testsuite/gdb.arch/altivec-regs.exp index 5647fb5..d230392 100644 --- a/gdb/testsuite/gdb.arch/altivec-regs.exp +++ b/gdb/testsuite/gdb.arch/altivec-regs.exp @@ -117,47 +117,14 @@ gdb_test "print \$vrsave" ".* = 1" "print vrsave" gdb_test "print \$vscr" ".* = 1" "print vscr" for {set i 0} {$i < 32} {incr i 1} { - set pattern$i ".*vr$i.*" - append pattern$i $vector_register + lappend pattern_list "vr$i\[ \t\]+$vector_register" } +lappend pattern_list "vscr\[ \t\]+0x1" +lappend pattern_list "vrsave\[ \t\]+0x1" + send_gdb "info vector\n" -gdb_expect_list "info vector" ".*$gdb_prompt $" { -[$pattern0] -[$pattern1] -[$pattern2] -[$pattern3] -[$pattern4] -[$pattern5] -[$pattern6] -[$pattern7] -[$pattern8] -[$pattern9] -[$pattern10] -[$pattern11] -[$pattern12] -[$pattern13] -[$pattern14] -[$pattern15] -[$pattern16] -[$pattern17] -[$pattern18] -[$pattern19] -[$pattern20] -[$pattern21] -[$pattern22] -[$pattern23] -[$pattern24] -[$pattern25] -[$pattern26] -[$pattern27] -[$pattern28] -[$pattern29] -[$pattern30] -[$pattern31] -"\[ \t\n\r\]+vscr\[ \t\]+0x1" -"\[ \t\n\r\]+vrsave\[ \t\]+0x1" -} +gdb_expect_list "info vector" ".*$gdb_prompt $" $pattern_list gdb_test "break vector_fun" \ "Breakpoint 2 at.*altivec-regs.c, line \[0-9\]+\\." \ |