aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_stub.h
diff options
context:
space:
mode:
Diffstat (limited to 'Debugger/debug_stub.h')
-rw-r--r--Debugger/debug_stub.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Debugger/debug_stub.h b/Debugger/debug_stub.h
index dd2f433..ada5858 100644
--- a/Debugger/debug_stub.h
+++ b/Debugger/debug_stub.h
@@ -158,14 +158,14 @@ FUNCDEF void dbg__bkpt_handler(void);
/** dbg_breakpoint_arm.
* Equivalent to GDB breakpoint() routine for ARM code
*/
-/* FUNCDEF void dbg_breakpoint_arm(void); */
-inline void dbg_breakpoint_arm(void) { asm volatile (".word BKPT32_INSTR | BKPT32_MANUAL_BKPT"); }
+FUNCDEF void dbg_breakpoint_arm(void);
+inline void dbg_breakpoint_arm(void) { asm volatile (".word 0xE127FF7F" /* (BKPT32_INSTR | BKPT32_MANUAL_BKPT) */ ); }
/** dbg_breakpoint_thumb.
* Equivalent to GDB breakpoint() routine for Thumb code
*/
-/* FUNCDEF void dbg_breakpoint_thumb(void); */
-inline void dbg_breakpoint_thumb(void) { asm volatile (".hword BKPT16_INSTR | BKPT16_MANUAL_BKPT"); }
+FUNCDEF void dbg_breakpoint_thumb(void);
+inline void dbg_breakpoint_thumb(void) { asm volatile (".hword 0xBE7F" /* (BKPT16_INSTR | BKPT16_MANUAL_BKPT) */); }
/*@}*/