aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Host
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/armdebug/Host')
-rw-r--r--AT91SAM7S256/armdebug/Host/gdb-commands.txt7
-rwxr-xr-xAT91SAM7S256/armdebug/Host/nxt-gdb-server.py7
2 files changed, 11 insertions, 3 deletions
diff --git a/AT91SAM7S256/armdebug/Host/gdb-commands.txt b/AT91SAM7S256/armdebug/Host/gdb-commands.txt
index fd7ffd6..3135a1e 100644
--- a/AT91SAM7S256/armdebug/Host/gdb-commands.txt
+++ b/AT91SAM7S256/armdebug/Host/gdb-commands.txt
@@ -12,8 +12,11 @@ $p1#A1
# Display PC
$pF#B6
+# Display FPSCR (dummy)
+$p18#D9
+
# Display User CPSR
-$p!#91
+$p19#DA
# Query Status
$?#3F
@@ -37,4 +40,4 @@ $M00201D74,0002:9966#F5
+$m1001de,4#58
# Continue Execution
-$c#87
+$c#63
diff --git a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
index 4babdb9..ee03899 100755
--- a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
+++ b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
@@ -25,6 +25,7 @@ import struct
DEFAULT_PORT = 2828
SELECT_TIMEOUT = 0.1
DEBUG = True
+DEBUG2 = False
NXT_RECV_ERR = -1
# Libusb 0.12.x blocks on USB reads
@@ -152,12 +153,16 @@ class NXTGDBServer:
# Some pyusb are buggy, ignore some "errors".
if e.args != ('No error', ):
raise e
- if s and LIBUSB_RECEIVE_BLOCKING:
+ if segments != [] and LIBUSB_RECEIVE_BLOCKING:
+ if DEBUG2:
+ print "Accessing Blocking sock.recv()"
data = self.reassemble (brick.sock)
else:
client.close ()
client = None
if not LIBUSB_RECEIVE_BLOCKING:
+ if DEBUG2:
+ print "Accessing Non-Blocking sock.recv()"
data = self.reassemble (brick.sock)
# Is there something from NXT brick?