summaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Host
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/armdebug/Host')
-rw-r--r--AT91SAM7S256/armdebug/Host/gdb-commands.txt6
-rwxr-xr-xAT91SAM7S256/armdebug/Host/nxt-gdb-server.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/AT91SAM7S256/armdebug/Host/gdb-commands.txt b/AT91SAM7S256/armdebug/Host/gdb-commands.txt
index 9b52613..8e6f156 100644
--- a/AT91SAM7S256/armdebug/Host/gdb-commands.txt
+++ b/AT91SAM7S256/armdebug/Host/gdb-commands.txt
@@ -15,6 +15,12 @@ $pF#B6
# Display User CPSR
$p!#91
+# Query Status
+$?#3F
+
+# Query Thread
+$qC#B4
+
# Set R1 to 0xAA
$P1=000000AA#60
diff --git a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
index a72055f..4babdb9 100755
--- a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
+++ b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
@@ -152,7 +152,7 @@ class NXTGDBServer:
# Some pyusb are buggy, ignore some "errors".
if e.args != ('No error', ):
raise e
- if LIBUSB_RECEIVE_BLOCKING:
+ if s and LIBUSB_RECEIVE_BLOCKING:
data = self.reassemble (brick.sock)
else:
client.close ()