aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-06-20 09:36:09 +0800
committerTat-Chee Wan (USM)2011-06-20 09:36:09 +0800
commit17b2827aeff34b69ecb98305d9890f58acb99461 (patch)
treebc810177c03a7f91a62c4f3b10b4c5ffc4de2243 /AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
parent724f0cab2008109102428c6a7393f1ec85281574 (diff)
parent4814854ff7149f3b9dae2d5f1bf49d2bdeeaed6d (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256/armdebug/Host/nxt-gdb-server.py')
-rwxr-xr-xAT91SAM7S256/armdebug/Host/nxt-gdb-server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
index a4ea2ad..1a87793 100755
--- a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
+++ b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
@@ -20,7 +20,7 @@ import socket
import optparse
import select
#import usb
-import nxt.pyfantom
+import pyfantom
import struct
CTRLC = chr(3)
@@ -134,7 +134,7 @@ class NXTGDBServer:
s.bind (('', self.port))
s.listen (1)
# Open connection to the NXT brick.
- brick = nxt.locator.find_one_brick ()
+ brick = nxt.locator.find_one_brick (method=nxt.Method(usb=False, bluetooth=False, fantomusb=True, fantombt=False))
brick.sock.debug = DEBUG
print "Waiting for GDB connection on port %s..." % self.port
while True: