From bd9273fe68c0276352435ede4726fbdbb3b8ab5b Mon Sep 17 00:00:00 2001 From: TC Wan Date: Tue, 14 Dec 2010 13:19:43 +0800 Subject: fix compile errors --- Debugger/debug_stub.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Debugger/debug_stub.h') 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) */); } /*@}*/ -- cgit v1.2.3