Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include Add breakpoint definitions for DTrace



details:   https://anonhg.NetBSD.org/src/rev/9b9df392bc47
branches:  trunk
changeset: 794445:9b9df392bc47
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Sat Mar 15 05:54:20 2014 +0000

description:
Add breakpoint definitions for DTrace

diffstat:

 sys/arch/arm/include/trap.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r e0d52117c8ec -r 9b9df392bc47 sys/arch/arm/include/trap.h
--- a/sys/arch/arm/include/trap.h       Fri Mar 14 22:21:31 2014 +0000
+++ b/sys/arch/arm/include/trap.h       Sat Mar 15 05:54:20 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.h,v 1.8 2008/01/19 13:11:09 chris Exp $   */
+/*     $NetBSD: trap.h,v 1.9 2014/03/15 05:54:20 ozaki-r Exp $ */
 
 /*
  * Copyright (c) 1995 Mark Brinicombe.
@@ -62,6 +62,14 @@
 #define GDB_THUMB_BREAKPOINT   0xdefe          /* Thumb in GDB */
 #define KERNEL_BREAKPOINT      0xe7ffffff      /* Used by DDB */
 
+/*
+ * DTrace uses 0xe7fffef0 to 0xe7fffeff as breakpoints.
+ * The first byte is used to encode a cond value.
+ */
+#define DTRACE_BREAKPOINT      0xe7fffef0
+#define DTRACE_BREAKPOINT_MASK 0xfffffff0
+#define DTRACE_IS_BREAKPOINT(insn)     ((insn & DTRACE_BREAKPOINT_MASK) == DTRACE_BREAKPOINT)
+
 #define KBPT_ASM               ".word 0xe7ffdefe"
 
 #define USER_BREAKPOINT                GDB_BREAKPOINT



Home | Main Index | Thread Index | Old Index