From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26485 invoked by alias); 16 Apr 2012 09:42:02 -0000 Received: (qmail 26477 invoked by uid 22791); 16 Apr 2012 09:42:01 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 16 Apr 2012 09:41:48 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1SJiRO-0002ve-Op from Hui_Zhu@mentor.com ; Mon, 16 Apr 2012 02:41:46 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 16 Apr 2012 02:41:12 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Mon, 16 Apr 2012 02:41:45 -0700 Message-ID: <4F8BE955.2090600@mentor.com> Date: Mon, 16 Apr 2012 09:50:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Doug Evans , Jan Kratochvil , Yao Qi CC: Subject: Re: [PATCH] breakpoint remove fail handle bug fix References: <4F8549BC.3050003@mentor.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2012-04/txt/msg00404.txt.bz2 On 04/12/12 12:17, Doug Evans wrote: > On Wed, Apr 11, 2012 at 2:07 AM, Hui Zhu wrote: >> (gdb) d >> Delete all breakpoints? (y or n) y >> warning: Error removing breakpoint 2 > > At this point: > > (gdb) i b > (gdb) # breakpoint is gone as far as gdb is concerned > > Eewwww. :-( Yes. I handle this issue through is deleted them from the breakpoint list and put them to a special list. When the GDB try to remove the breakpoint, it will try again with this list. I suggest that even if we can fix the issue that make the target-async get that breakpoint error, I need a way to handle the error in breakpoint part. What do you think about it? Thanks, Hui