Commit 6dfdc69f authored by Jan Kiszka's avatar Jan Kiszka Committed by Philippe Gerum

cobalt/arm: Detect software breakpoints

gdb injects software breakpoints as undefined instructions. Make sure we
detect them as well.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent fab0540a
......@@ -56,7 +56,8 @@ struct xnarchtcb {
#define xnarch_fault_pf_p(d) ((d)->exception == IPIPE_TRAP_ACCESS)
#define xnarch_fault_bp_p(d) ((current->ptrace & PT_PTRACED) && \
((d)->exception == IPIPE_TRAP_BREAK))
((d)->exception == IPIPE_TRAP_BREAK || \
(d)->exception == IPIPE_TRAP_UNDEFINSTR))
#define xnarch_fault_notify(d) (!xnarch_fault_bp_p(d))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment