summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-18 12:02:33 +0800
committerTat-Chee Wan (USM)2011-03-18 12:02:33 +0800
commitd7e6d01799a0465c024bb0025476ffdfbbedfa93 (patch)
tree35111047c86aec82b8c7b2e730c7432411f68e75
parent27866753e46ef5d711950b6db04a06b9f68ccc9c (diff)
fixed incorrect parameter lengths for setonereg
-rw-r--r--Debugger/debug_stub.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Debugger/debug_stub.h b/Debugger/debug_stub.h
index 1c47050..d70152b 100644
--- a/Debugger/debug_stub.h
+++ b/Debugger/debug_stub.h
@@ -81,8 +81,9 @@
#define CMD_REG_NUMREGS 17
#define CMD_REG_GETONE_PARAMLEN 1
#define CMD_REG_GETALL_PARAMLEN 0
-#define CMD_REG_SETONE_PARAMLEN 6
-#define CMD_REG_SETALL_PARAMLEN (CMD_REG_NUMREGS*4)
+#define CMD_REG_REGPARAMLEN 8 /* 32-bit ASCII Hex Value */
+#define CMD_REG_SETONE_PARAMLEN (2 + CMD_REG_REGPARAMLEN)
+#define CMD_REG_SETALL_PARAMLEN (CMD_REG_NUMREGS*CMD_REG_REGPARAMLEN)
/*@}*/