[Cbe-oss-dev] How is a debugger supposed to find the SPU's PC value in a CBE core file?

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Jul 16 09:01:13 EST 2007


> > Would it be useful to provide a mechanism for a debugger to set a "break
> > on entry" flag on a context, causing either libspe or the kernel to
> > trigger a breakpoint stop on the next attempt at running anything in
> > that context, regardless of the PC value ?
> 
> I'd guess that the debugger can implement that without libspe2
> or kernel support, simply by setting a breakpoint on the
> spu_run syscall instruction in libspe2 and ignoring the
> breakpoint if its run on a context that you are not tracing.

Yup, that would work.

Ben.





More information about the cbe-oss-dev mailing list