[PATCH] powerpc/uprobes: teach uprobes to ignore gdb breakpoints

Oleg Nesterov oleg at redhat.com
Sat Mar 23 01:46:40 EST 2013

On 03/22, Ananth N Mavinakayanahalli wrote:
> On Thu, Mar 21, 2013 at 04:58:09PM +0100, Oleg Nesterov wrote:
> >
> > 	- verify_opcode()->is_swbp_insn() means:
> >
> > 		is this insn fine for uprobe? (we do not care about
> > 		gdb, we simply ignore this problem)
> I will write up a patch for this case.. So, IIUC we do not care to send
> gdb a SIGTRAP if we have replaced a conditional trap from gdb with an
> unconditional uprobes one, right?


And just in case, we do not send SIGTRAP if gdb used the same/unconditional
insn. We simply can't know if someone else wants to know that the task hits
this breakpoint.


More information about the Linuxppc-dev mailing list