aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_stub.h
diff options
context:
space:
mode:
authorTC Wan2010-12-21 11:16:52 +0800
committerTC Wan2010-12-21 11:16:52 +0800
commit7eb731a862755755f0d6dc87d7b4c1357008c3d4 (patch)
treeafffc9e68b0a8fbec46fb0d890a5c383101729e6 /AT91SAM7S256/armdebug/Debugger/debug_stub.h
parenta097bcca3e556df8d2c473016cf3734bb9defdb8 (diff)
parent29149e9487715209da4c574b4d3b1cfb7ea17b78 (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256/armdebug/Debugger/debug_stub.h')
-rw-r--r--AT91SAM7S256/armdebug/Debugger/debug_stub.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_stub.h b/AT91SAM7S256/armdebug/Debugger/debug_stub.h
index b090572..c3a71c4 100644
--- a/AT91SAM7S256/armdebug/Debugger/debug_stub.h
+++ b/AT91SAM7S256/armdebug/Debugger/debug_stub.h
@@ -91,6 +91,7 @@
#define CPSR_THUMB 0x00000020
#define CPSR_FIQ 0x00000040
#define CPSR_IRQ 0x00000080
+#define CPSR_MODE 0x0000001F
/*@}*/
@@ -167,8 +168,8 @@ 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)
+/* FUNCDEF void dbg_breakpoint_arm(void); */
+static inline void dbg_breakpoint_arm(void)
{
asm volatile (".word %a0"
: /* Output (empty) */
@@ -179,9 +180,9 @@ inline void dbg_breakpoint_arm(void)
#if 0 /* Old asm definitions, in case gas does not recognize %a0 operand */
#ifdef __ARM6OR7__
-inline void dbg_breakpoint_arm(void) { asm volatile (".word 0xE727FF7F" /* (BKPT32_INSTR | BKPT32_MANUAL_BKPT) */ ); }
+static inline void dbg_breakpoint_arm(void) { asm volatile (".word 0xE727FF7F" /* (BKPT32_INSTR | BKPT32_MANUAL_BKPT) */ ); }
#else
-inline void dbg_breakpoint_arm(void) { asm volatile (".word 0xE127FF7F" /* (BKPT32_INSTR | BKPT32_MANUAL_BKPT) */ ); }
+static inline void dbg_breakpoint_arm(void) { asm volatile (".word 0xE127FF7F" /* (BKPT32_INSTR | BKPT32_MANUAL_BKPT) */ ); }
#endif
#endif
@@ -189,8 +190,8 @@ inline void dbg_breakpoint_arm(void) { asm volatile (".word 0xE127FF7F" /* (BKPT
/** dbg_breakpoint_thumb.
* Equivalent to GDB breakpoint() routine for Thumb code
*/
-FUNCDEF void dbg_breakpoint_thumb(void);
-inline void dbg_breakpoint_thumb(void)
+/* FUNCDEF void dbg_breakpoint_thumb(void); */
+static inline void dbg_breakpoint_thumb(void)
{
asm volatile (".hword %a0"
: /* Output (empty) */
@@ -200,7 +201,7 @@ inline void dbg_breakpoint_thumb(void)
#if 0 /* Old asm definitions, in case gas does not recognize %a0 operand */
-inline void dbg_breakpoint_thumb(void) { asm volatile (".hword 0xBE7F" /* (BKPT16_INSTR | BKPT16_MANUAL_BKPT) */); }
+static inline void dbg_breakpoint_thumb(void) { asm volatile (".hword 0xBE7F" /* (BKPT16_INSTR | BKPT16_MANUAL_BKPT) */); }
#endif