From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9721 invoked by alias); 24 May 2013 03:19:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 9701 invoked by uid 89); 24 May 2013 03:19:46 -0000 X-Spam-SWARE-Status: No, score=-4.9 required=5.0 tests=AWL,BAYES_00,KAM_TIME,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from e24smtp04.br.ibm.com (HELO e24smtp04.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 24 May 2013 03:19:46 +0000 Received: from /spool/local by e24smtp04.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 24 May 2013 00:19:42 -0300 Received: from d24dlp01.br.ibm.com (9.18.248.204) by e24smtp04.br.ibm.com (10.172.0.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 24 May 2013 00:19:41 -0300 Received: from d24relay03.br.ibm.com (d24relay03.br.ibm.com [9.13.184.25]) by d24dlp01.br.ibm.com (Postfix) with ESMTP id ACB483520027 for ; Thu, 23 May 2013 23:19:40 -0400 (EDT) Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.8.31.97]) by d24relay03.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r4O3IctA38993968 for ; Fri, 24 May 2013 00:18:38 -0300 Received: from d24av04.br.ibm.com (localhost [127.0.0.1]) by d24av04.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r4O3JdRG017858 for ; Fri, 24 May 2013 00:19:40 -0300 Received: from grandaddy.ibm.com ([9.8.6.4]) by d24av04.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id r4O3Jd2T017851; Fri, 24 May 2013 00:19:39 -0300 From: Edjunior Barbosa Machado To: gdb-patches@sourceware.org Cc: lgustavo@codesourcery.com Subject: [PATCH] Fix wp-replication.exp for targets that provide only 1 hw watchpoint Date: Fri, 24 May 2013 03:19:00 -0000 Message-Id: <1369365561-14567-1-git-send-email-emachado@linux.vnet.ibm.com> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13052403-8936-0000-0000-00000A40F5A4 X-SW-Source: 2013-05/txt/msg00903.txt.bz2 Thanks, -- Edjunior gdb/testsuite/ChangeLog 2013-05-24 Edjunior Barbosa Machado * gdb.threads/wp-replication.exp: Fix accounting of hardware watchpoints on targets that provide only one hw watchpoint. --- gdb/testsuite/gdb.threads/wp-replication.exp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/gdb/testsuite/gdb.threads/wp-replication.exp b/gdb/testsuite/gdb.threads/wp-replication.exp index 8927a43..f73b763 100644 --- a/gdb/testsuite/gdb.threads/wp-replication.exp +++ b/gdb/testsuite/gdb.threads/wp-replication.exp @@ -78,6 +78,10 @@ while { $done == 0 } { } } + if { $done == 1 } { + break + } + gdb_test_multiple "continue" "watchpoint created successfully" { -re ".*Breakpoint 2, empty_cycle \\(\\).*$gdb_prompt $" { incr hwatch_count -- 1.7.1