This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] Fix PowerPC displaced stepping regression


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
> + ? ?displaced instruction. ?*/
> + static int
> + ppc_displaced_step_hw_singlestep (struct gdbarch *gdbarch,
> + ?????????????????????????????? ?struct displaced_step_closure *closure)
> + {
> + ? 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.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]