summaryrefslogtreecommitdiff
path: root/AT91SAM7S256
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-22 15:53:05 +0800
committerTat-Chee Wan (USM)2011-03-22 15:53:05 +0800
commit0f08888a613ec00fb681e6da71152f99c27476f8 (patch)
tree6320ab5eff9ac9f5edd6e852b45fb6409b535ca5 /AT91SAM7S256
parent95b6ef345caa7fc646f096d040b0fe0809174484 (diff)
parent727dba872b5a17c070ebc5c44d927ad6743acc19 (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256')
-rwxr-xr-xAT91SAM7S256/armdebug/Host/nxt-gdb-server.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
index 67e93b8..a72055f 100755
--- a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
+++ b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
@@ -73,7 +73,10 @@ class NXTGDBServer:
# Is # found and enough place for the checkum?
while end >= 0 and end < len (self.in_buf) - 2:
msg, self.in_buf = self.in_buf[0:end + 3], self.in_buf[end + 3:]
- assert msg[0] == '$', "not a GDB command"
+ gdbprefix = msg[0]
+ if gdbprefix in ['+', '-']:
+ gdbprefix = msg[1]
+ assert gdbprefix == '$', "not a GDB command"
# Make segments.
seg_no = 0
while msg: