aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_stub.S
diff options
context:
space:
mode:
authorTC Wan2010-12-30 18:06:04 +0800
committerTC Wan2010-12-30 18:06:04 +0800
commite6929056476cf1acb3c12abb8e5d4252b003a719 (patch)
tree614cd1a7763ee1662d4723e5af9cd950603e7daa /AT91SAM7S256/armdebug/Debugger/debug_stub.S
parentb7d4f58fac3aced7756a15264b89575ab0ba2490 (diff)
parentc0201887f08821d20a05bce2ec303c773a3f4b4b (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256/armdebug/Debugger/debug_stub.S')
-rw-r--r--AT91SAM7S256/armdebug/Debugger/debug_stub.S24
1 files changed, 19 insertions, 5 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_stub.S b/AT91SAM7S256/armdebug/Debugger/debug_stub.S
index 4ebe6f3..c6e7ca8 100644
--- a/AT91SAM7S256/armdebug/Debugger/debug_stub.S
+++ b/AT91SAM7S256/armdebug/Debugger/debug_stub.S
@@ -87,6 +87,19 @@
*
* ? What was the last sigval ? SNN (signal NN)
*
+ * zt,AA..AA,k Remove a Breakpoint of type t at addr OK or ENN
+ * AA..AA of kind k
+ * Zt,AA..AA,k Insert a Breakpoint of type t at addr OK or ENN
+ * AA..AA of kind k
+ * t 0: memory breakpoint
+ * 1: hardware breakpoint
+ * 2: write watchpoint
+ * 3: read watchpoint
+ * 4: access watchpoint
+ * k: 2 (16-bit Thumb), 3 (32-bit Thumb2)
+ * or 4 (32-bit ARM) for t=[0,1]
+ * Num. bytes to watch for t=[3,4]
+ *
* All commands and responses are sent with a packet which includes a
* checksum. A packet consists of
*
@@ -105,10 +118,9 @@
* $m0,10#2a +$00010203040506070809101112131415#42
*
****************************************************************************/
- /* Modified GDB Server Remote Protocol definition from GDB's sparc-stub.c Comment Header included above */
-
-
-/* FIXME: What about setting/clearing Breakpoints? */
+ /* Modified GDB Server Remote Protocol definition from GDB's sparc-stub.c Comment Header included above
+ * Additional commands from GDB Reference Appendix D.2
+ */
#define __ASSEMBLY__
#include "debug_stub.h"
@@ -141,7 +153,7 @@ debug_OkResponse:
/* The CmdIndexTable and CmdJumpTable must be kept in sync */
debug_cmdIndexTable:
- .byte 'g','G','p','P','m','M','c','s','k','?',0
+ .byte 'g','G','p','P','m','M','c','s','k','z','Z','?',0
/* Command Handlers
* On entry:
@@ -157,6 +169,8 @@ debug_cmdJumpTable:
.word _dbg__nop /* 'c' */
.word _dbg__nop /* 's' */
.word _dbg__nop /* 'k' */
+ .word _dbg__nop /* 'z' */
+ .word _dbg__nop /* 'Z' */
.word _dbg__nop /* '?' */
.word 0