aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_stub.h
diff options
context:
space:
mode:
authorTC Wan2010-12-14 13:19:43 +0800
committerTC Wan2010-12-14 13:19:43 +0800
commitbd9273fe68c0276352435ede4726fbdbb3b8ab5b (patch)
treeeac8345e41744b29283674ba153c44f2900070ac /Debugger/debug_stub.h
parentf87b7a4e705f09d86f2132b02b38bd7845b40319 (diff)
fix compile errors
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) */); }
/*@}*/