aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Host
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-25 12:45:50 +0800
committerTat-Chee Wan (USM)2011-03-25 12:45:50 +0800
commit953c08633b8d04899c53bc4618c4d50279b27cbd (patch)
tree2f8c19f7a94de68b566707c8ca0cf4a7aab96f9b /AT91SAM7S256/armdebug/Host
parent5b15d51e06cd552142081dea28b17a822f3e39a7 (diff)
parent41d30e96debfa7fb4a787ec6b298b8d3e6b76045 (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
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?