summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: