From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22711 invoked by alias); 9 Aug 2019 15:53:17 -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 22703 invoked by uid 89); 9 Aug 2019 15:53:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:555 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; Fri, 09 Aug 2019 15:53:16 +0000 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x79FdDSx135407 for ; Fri, 9 Aug 2019 11:53:14 -0400 Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by mx0a-001b2d01.pphosted.com with ESMTP id 2u9bnqrggd-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 09 Aug 2019 11:53:14 -0400 Received: from localhost by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 9 Aug 2019 16:53:13 +0100 Received: from b03cxnp07028.gho.boulder.ibm.com (9.17.130.15) by e33.co.us.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 9 Aug 2019 16:53:11 +0100 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x79Fr9xh52232536 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 9 Aug 2019 15:53:09 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1FC52BE058; Fri, 9 Aug 2019 15:53:09 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D59ADBE061; Fri, 9 Aug 2019 15:53:08 +0000 (GMT) Received: from pedro.localdomain (unknown [9.80.195.227]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 9 Aug 2019 15:53:08 +0000 (GMT) Received: by pedro.localdomain (Postfix, from userid 1000) id 415F63C0423; Fri, 9 Aug 2019 12:53:04 -0300 (-03) From: Pedro Franco de Carvalho To: Ulrich Weigand Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 3/3] [PowerPC] Fix debug register issues in ppc-linux-nat In-Reply-To: <20190809152845.C680AD802D2@oc3748833570.ibm.com> References: <20190809152845.C680AD802D2@oc3748833570.ibm.com> Date: Fri, 09 Aug 2019 15:53:00 -0000 MIME-Version: 1.0 Content-Type: text/plain x-cbid: 19080915-0036-0000-0000-00000AE3B00E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00011575; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000287; SDB=6.01244378; UDB=6.00656511; IPR=6.01025860; MB=3.00028109; MTD=3.00000008; XFM=3.00000015; UTC=2019-08-09 15:53:12 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19080915-0037-0000-0000-00004CF32D8E Message-Id: <87tvaq72u8.fsf@linux.ibm.com> X-SW-Source: 2019-08/txt/msg00230.txt.bz2 "Ulrich Weigand" writes: > But it seems what would work reliably is to delete slots from 1 to max, > while ignoring ENOENT, right? In fact, you don't even need to know the > max slot number, because you'll get EINVAL if and only if you're attempting > to delete the first slot after max (assuming you do it in sequence). Yes, this should work and should make the next version simpler. I'll make a new version of the patch. Thanks! -- Pedro Franco de Carvalho