aboutsummaryrefslogtreecommitdiff
path: root/Host/nxt-gdb-server.py
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-22 15:52:31 +0800
committerTat-Chee Wan (USM)2011-03-22 15:52:31 +0800
commit727dba872b5a17c070ebc5c44d927ad6743acc19 (patch)
tree1c6f03bd19a0c81ad93b326614591ebe297ad110 /Host/nxt-gdb-server.py
parent39f866e05f703d64f621d77b135b7958d0ccf110 (diff)
updated gdb command checking assert logic
Diffstat (limited to 'Host/nxt-gdb-server.py')
-rwxr-xr-xHost/nxt-gdb-server.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Host/nxt-gdb-server.py b/Host/nxt-gdb-server.py
index 67e93b8..a72055f 100755
--- a/Host/nxt-gdb-server.py
+++ b/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: