From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24739 invoked by alias); 28 Apr 2007 23:36:10 -0000 Received: (qmail 24730 invoked by uid 22791); 28 Apr 2007 23:36:09 -0000 X-Spam-Check-By: sourceware.org Received: from igw3.br.ibm.com (HELO igw3.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 29 Apr 2007 00:36:07 +0100 Received: from mailhub3.br.ibm.com (unknown [9.18.232.110]) by igw3.br.ibm.com (Postfix) with ESMTP id 13D6E390043 for ; Sat, 28 Apr 2007 20:28:20 -0300 (BRT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l3SNZkDX1478734 for ; Sat, 28 Apr 2007 20:35:46 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l3SNXjYn029750 for ; Sat, 28 Apr 2007 20:33:45 -0300 Received: from [9.18.198.122] ([9.18.198.122]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l3SNXhXV029737; Sat, 28 Apr 2007 20:33:44 -0300 Subject: Re: [patch] Single stepping over atomic instruction sets for GDB 6.6 From: Luis Machado Reply-To: luisgpm@linux.vnet.ibm.com To: Jan Kratochvil Cc: gdb-patches ml In-Reply-To: <20070428175641.GA2136@host0.dyn.jankratochvil.net> References: <1177352371.15414.29.camel@localhost> <20070428175641.GA2136@host0.dyn.jankratochvil.net> Content-Type: text/plain Date: Sat, 28 Apr 2007 23:37:00 -0000 Message-Id: <1177803342.6280.54.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 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: 2007-04/txt/msg00389.txt.bz2 Jan, I've sent a version for CVS HEAD, but it seems it didn't make its way to the list. I re-submitted it now. You should have access to it through this url: http://sourceware.org/ml/gdb-patches/2007-04/msg00386.html I'd like to better understand your patch. So please, if you could go through the modifications, that would be nice. Thanks for the update! Best Regards, Luis On Sat, 2007-04-28 at 19:56 +0200, Jan Kratochvil wrote: > On Mon, 23 Apr 2007 20:19:31 +0200, Luis Machado wrote: > ... > > This is the patch for handling the sigle stepping of atomic instruction > > sets previously posted on this list refreshed for the stable version 6.6 > > of GDB, in case users of this version would like to use it. > > It fails for me on the attached testcase on gdb-6.6.ppc64 in 99% cases with > infrun.c:1567: internal-error: handle_inferior_event: Assertion `SOFTWARE_SINGLE_STEP_P () && singlestep_breakpoints_inserted_p' failed. > (tested on 4x CPU POWER5+, kernel-2.6.18-8.1.1.el5.ppc64) > > The attached patch ON TOP OF YOURS fixes this problem (mostly, see below). > > This patch has not been ported to HEAD as the last CVS version of your patch > I found is > http://sourceware.org/ml/gdb-patches/2007-03/msg00145.html > which is no longer applicable to HEAD, please update it. > > -- > > This fix is not 100%, though, it now passes only in 93% cases, in the remaining > 7% of cases it will prematurely FAIL due to (missed breakpoint) > Program exited normally. > > I believe it is not a failure of this fix but some unrelated PPC port problem. > Unfortunately this "Program exited normally." FAIL becomes unreproducible while > trying to debug it (`set debug infrun 1'), there is some race. > > > Regards, > Jan