From patchwork Thu Jan 10 19:44:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Franco de Carvalho X-Patchwork-Id: 31024 Received: (qmail 18932 invoked by alias); 10 Jan 2019 19:45:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 18772 invoked by uid 89); 10 Jan 2019 19:45:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS, TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=11747 X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 Jan 2019 19:45:03 +0000 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x0AJhw2t013378 for ; Thu, 10 Jan 2019 14:45:02 -0500 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2pxbxxh998-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 Jan 2019 14:45:01 -0500 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 Jan 2019 19:45:00 -0000 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 10 Jan 2019 19:44:58 -0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0AJiu7n9109534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Jan 2019 19:44:57 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B6C08AC05F; Thu, 10 Jan 2019 19:44:56 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8AA3DAC059; Thu, 10 Jan 2019 19:44:56 +0000 (GMT) Received: from pedro.localdomain (unknown [9.18.235.111]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 10 Jan 2019 19:44:56 +0000 (GMT) Received: by pedro.localdomain (Postfix, from userid 1000) id 1F0B63C02C3; Thu, 10 Jan 2019 17:44:44 -0200 (-02) From: Pedro Franco de Carvalho To: gdb-patches@sourceware.org Cc: uweigand@de.ibm.com Subject: [PATCH] [PowerPC] Fix "info vector" test in gdb.arch/altivec-regs.exp Date: Thu, 10 Jan 2019 17:44:34 -0200 In-Reply-To: <20190110194434.842-1-pedromfc@linux.ibm.com> References: <20190110194434.842-1-pedromfc@linux.ibm.com> x-cbid: 19011019-0072-0000-0000-000003E80026 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010380; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000274; SDB=6.01144582; UDB=6.00595973; IPR=6.00924847; MB=3.00025072; MTD=3.00000008; XFM=3.00000015; UTC=2019-01-10 19:45:00 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19011019-0073-0000-0000-00004AC2B6E0 Message-Id: <20190110194434.842-2-pedromfc@linux.ibm.com> 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: 2018-01-10 Pedro Franco de Carvalho * gdb.arch/altivec-regs.exp: Fix the list passed to gdb_expect_list when testign "info vector". --- gdb/testsuite/gdb.arch/altivec-regs.exp | 43 ++++----------------------------- 1 file changed, 5 insertions(+), 38 deletions(-) diff --git a/gdb/testsuite/gdb.arch/altivec-regs.exp b/gdb/testsuite/gdb.arch/altivec-regs.exp index 5647fb5e86..d23039244f 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\]+\\." \