aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_stub.h
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-25 12:45:50 +0800
committerTat-Chee Wan (USM)2011-03-25 12:45:50 +0800
commit953c08633b8d04899c53bc4618c4d50279b27cbd (patch)
tree2f8c19f7a94de68b566707c8ca0cf4a7aab96f9b /AT91SAM7S256/armdebug/Debugger/debug_stub.h
parent5b15d51e06cd552142081dea28b17a822f3e39a7 (diff)
parent41d30e96debfa7fb4a787ec6b298b8d3e6b76045 (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.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_stub.h b/AT91SAM7S256/armdebug/Debugger/debug_stub.h
index 9d97705..a69efd3 100644
--- a/AT91SAM7S256/armdebug/Debugger/debug_stub.h
+++ b/AT91SAM7S256/armdebug/Debugger/debug_stub.h
@@ -59,7 +59,6 @@
#define MSGBUF_NAKCHAR '-'
#define MSGBUF_ERRCHAR 'E'
#define MSGBUF_SIGCHAR 'S'
-#define MSGBUF_CPSRREG '!'
#define MSGBUF_SETCHAR '='
#define MSGBUF_CHKSUMCHAR '#'
#define MSGBUF_SEPCHAR ','
@@ -82,10 +81,12 @@
*/
/*@{*/
#define CMD_REG_NUMREGS 17
-#define CMD_REG_GETONE_PARAMLEN 1
+#define CMD_REG_GETONE_MINPARAMLEN 1
+#define CMD_REG_GETONE_MAXPARAMLEN 2
#define CMD_REG_GETALL_PARAMLEN 0
#define CMD_REG_REGPARAMLEN 8 /* 32-bit ASCII Hex Value */
-#define CMD_REG_SETONE_PARAMLEN (2 + CMD_REG_REGPARAMLEN)
+#define CMD_REG_SETONE_MINPARAMLEN (2 + CMD_REG_REGPARAMLEN)
+#define CMD_REG_SETONE_MAXPARAMLEN (3 + CMD_REG_REGPARAMLEN)
#define CMD_REG_SETALL_PARAMLEN (CMD_REG_NUMREGS*CMD_REG_REGPARAMLEN)
/*@}*/
@@ -231,12 +232,21 @@ ENUM_BEGIN
ENUM_VALASSIGN(DBG_RESET, 0) /**< Initial State. */
ENUM_VAL(DBG_INIT) /**< Debugger Initialized. */
ENUM_VAL(DBG_CONFIGURED) /**< Debugger has been configured by GDB Server */
-ENUM_VAL(DBG_MANUAL_BKPT_ARM) /**< Manual ARM Breakpoint. */
-ENUM_VAL(DBG_NORMAL_BKPT_ARM) /**< Normal ARM Breakpoint (Single Step, Normal). */
-ENUM_VAL(DBG_MANUAL_BKPT_THUMB) /**< Manual Thumb Breakpoint. */
-ENUM_VAL(DBG_NORMAL_BKPT_THUMB) /**< Normal Thumb Breakpoint (Single Step, Normal). */
ENUM_END(dbg_state_t)
+/** Breakpoint Type Enums
+ *
+ * Breakpoint Type.
+ * The enums must be consecutive, starting from 0
+ */
+ENUM_BEGIN
+ENUM_VALASSIGN(DBG_AUTO_BKPT,0) /**< Auto Thumb Breakpoint (Instruction resume after breakpoint). */
+ENUM_VAL(DBG_MANUAL_BKPT_ARM) /**< Manual ARM Breakpoint. */
+ENUM_VAL(DBG_NORMAL_BKPT_ARM) /**< Normal ARM Breakpoint (Single Step, Normal). */
+ENUM_VAL(DBG_MANUAL_BKPT_THUMB) /**< Manual Thumb Breakpoint. */
+ENUM_VAL(DBG_NORMAL_BKPT_THUMB) /**< Normal Thumb Breakpoint (Single Step, Normal). */
+ENUM_END(bkpt_type_t)
+
/** Debugger Message Error Enums
*
* Debugger Error Message Enums.
@@ -256,11 +266,10 @@ ENUM_END(dbg_msg_errno)
/** Register Enums
*
* Register Enums.
- * The enums must be consecutive, starting from -1
+ * Refer to eCOS's arm_stub.h for enum values
*/
ENUM_BEGIN
-ENUM_VALASSIGN(REG_CPSR, -1) /**< Previous Mode CPSR */
-ENUM_VAL(REG_R0) /**< User Reg R0 */
+ENUM_VALASSIGN(REG_R0, 0) /**< User Reg R0 */
ENUM_VAL(REG_R1) /**< User Reg R1 */
ENUM_VAL(REG_R2) /**< User Reg R2 */
ENUM_VAL(REG_R3) /**< User Reg R3 */
@@ -276,6 +285,8 @@ ENUM_VAL(REG_R12) /**< User Reg R12 */
ENUM_VAL(REG_SP) /**< Previous Mode SP (R13) */
ENUM_VAL(REG_LR) /**< Previous Mode LR (R14) */
ENUM_VAL(REG_PC) /**< Program Counter (R15) */
+ENUM_VALASSIGN(REG_FPSCR, 24) /**< Previous Mode FPSCR (dummy) */
+ENUM_VAL(REG_CPSR) /**< Previous Mode CPSR */
ENUM_END(register_enum_t)