From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7835 invoked by alias); 28 Sep 2009 19:41:19 -0000 Received: (qmail 7823 invoked by uid 22791); 28 Sep 2009 19:41:18 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Sep 2009 19:41:14 +0000 Received: (qmail 818 invoked from network); 28 Sep 2009 19:41:13 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Sep 2009 19:41:13 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [rfc] Fix PowerPC displaced stepping regression Date: Mon, 28 Sep 2009 19:41:00 -0000 User-Agent: KMail/1.9.10 Cc: "Ulrich Weigand" , Julian Brown , Daniel Jacobowitz References: <200909272147.n8RLlDCU031811@d12av02.megacenter.de.ibm.com> In-Reply-To: <200909272147.n8RLlDCU031811@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200909282041.28010.pedro@codesourcery.com> 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: 2009-09/txt/msg00886.txt.bz2 On Sunday 27 September 2009 22:47:13, Ulrich Weigand wrote: > + # the the displaced instruction identified by CLOSURE. If false, Double "the". > + /* Always use hardware single-stepping to execute the > + =A0 =A0displaced instruction. =A0*/ > + static int > + ppc_displaced_step_hw_singlestep (struct gdbarch *gdbarch, > + =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 =A0struct displaced_step_closure *closure) > + { > + =A0 return 1; > + } > + Hmmm, does this mean that a breakpoint at the start of an atomic sequence instruction wouldn't be displaced stepped properly, as in, you'd trip on the same issue that happens when stepping over an atomic sequence without displaced stepping? (If broken, this was already broken before your patch and even before the regression your patch fixes) ( A nice stress test of the displaced stepping support is to run the whole testsuite with "set displaced-stepping on". ) I've now read through the patch carefully, and didn't spot anything wrong. I think this would be safe for 7.0 as well. --=20 Pedro Alves