summaryrefslogtreecommitdiff
path: root/Host/nxt-gdb-server.py
diff options
context:
space:
mode:
authorTC Wan2011-01-04 14:57:57 +0800
committerTC Wan2011-01-04 14:57:57 +0800
commit0157c5a795a9b5332b21434a043ff48f09d104bd (patch)
tree5dde094e04823f15b37636cbb045c446ff2773cf /Host/nxt-gdb-server.py
parentdcdbc6d3f18fa1c255bc03ce573fed74b754b19c (diff)
added segment_no support logic to receive routine
Diffstat (limited to 'Host/nxt-gdb-server.py')
-rwxr-xr-xHost/nxt-gdb-server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Host/nxt-gdb-server.py b/Host/nxt-gdb-server.py
index 27cb4a3..73e025b 100755
--- a/Host/nxt-gdb-server.py
+++ b/Host/nxt-gdb-server.py
@@ -50,9 +50,9 @@ class NXTGDBServer:
# May be improved, for now, check command and announced length.
if len (data) < 2:
return ''
- header, body = data[0:3], data[3:]
+ header, segment_no, body = data[0:3], data[3:]
command, self.segment_no, length = struct.unpack ('BBB', header)
- if command != self.debug_command or length != len (body):
+ if command != self.debug_command or length != len (body) or (self.segment_no != 0):
return ''
return body