[PATCH] powerpc ptrace block-step

Roland McGrath roland at redhat.com
Fri Apr 3 11:44:50 EST 2009

> The patch only implements it for "server/classic" processors, not BookE,
> thus it should probably only advertise it for these :-)
> Though it wouldn't be too hard to implement it for BookE using DBCR0:BRT
> (Branch Taken debug event) though it might need some careful fixups such
> as the one we have for single step regarding hitting exception entry
> code.

In that case, this code seems fairly mysterious:

> > +#if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
> > +		task->thread.dbcr0 = DBCR0_IDM | DBCR0_BT;
> > +		regs->msr |= MSR_DE;

That doesn't already do whatever it is you described?

Can we assume now that you or someone else who knows what all that means
will take this up?


More information about the Linuxppc-dev mailing list