Module: xenomai-3
Branch: next
Commit: 6dfdc69f5359d9a9945465e40800b605986bffba
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=6dfdc69f5359d9a9945465e40800b605986bffba

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Aug  4 15:13:17 2015 +0200

cobalt/arm: Detect software breakpoints

gdb injects software breakpoints as undefined instructions. Make sure we
detect them as well.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 kernel/cobalt/arch/arm/include/asm/xenomai/thread.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h 
b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
index 3d8e699..11439a3 100644
--- a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
+++ b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
@@ -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))
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to