From e08af40a59eb60ffc636c0701e5316b5ea03a005 Mon Sep 17 00:00:00 2001 From: TC Wan Date: Tue, 21 Dec 2010 10:06:00 +0800 Subject: more syntax error fun with static and extern in breakpoint prototypes Fix breakpoint prototype declarations, remove FUNCDEF (extern) declaration to enable static inline generation. --- Debugger/debug_stub.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Debugger/debug_stub.h b/Debugger/debug_stub.h index 2bf27fa..c3a71c4 100644 --- a/Debugger/debug_stub.h +++ b/Debugger/debug_stub.h @@ -168,7 +168,7 @@ FUNCDEF void dbg__bkpt_handler(void); /** dbg_breakpoint_arm. * Equivalent to GDB breakpoint() routine for ARM code */ -FUNCDEF static void dbg_breakpoint_arm(void); +/* FUNCDEF void dbg_breakpoint_arm(void); */ static inline void dbg_breakpoint_arm(void) { asm volatile (".word %a0" @@ -190,7 +190,7 @@ static inline void dbg_breakpoint_arm(void) { asm volatile (".word 0xE127FF7F" / /** dbg_breakpoint_thumb. * Equivalent to GDB breakpoint() routine for Thumb code */ -FUNCDEF static void dbg_breakpoint_thumb(void); +/* FUNCDEF void dbg_breakpoint_thumb(void); */ static inline void dbg_breakpoint_thumb(void) { asm volatile (".hword %a0" -- cgit v1.2.3