aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Host
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-02-22 11:32:04 +0800
committerTat-Chee Wan (USM)2011-02-22 11:32:04 +0800
commit383c4628d0ca729da547a88fa5f561c652b81c35 (patch)
treeb6c33a4259cd41b9a775530d7f033a4794350db2 /AT91SAM7S256/armdebug/Host
parent551b283e2a3fd0978263dce9d6a81eee853d9219 (diff)
parentb227bb6176e3bfda717ec3a54a96b452c13c0a60 (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.txt16
-rwxr-xr-xAT91SAM7S256/armdebug/Host/nxt-gdb-server.py2
2 files changed, 17 insertions, 1 deletions
diff --git a/AT91SAM7S256/armdebug/Host/gdb-commands.txt b/AT91SAM7S256/armdebug/Host/gdb-commands.txt
new file mode 100644
index 0000000..4155ec7
--- /dev/null
+++ b/AT91SAM7S256/armdebug/Host/gdb-commands.txt
@@ -0,0 +1,16 @@
+# This file contains hand coded GDB commands for testing the GDB Server <-> NXT interface
+
+# Display all Registers
+$g#67
+
+# Display R0
+$p0#A0
+
+# Display PC
+$pF#B6
+
+# Display User CPSR
+$p!#91
+
+# Set R0 to 0xAA
+$P1=000000AA#80
diff --git a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
index 2dd1b6a..0b7c871 100755
--- a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
+++ b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py
@@ -142,7 +142,7 @@ class NXTGDBServer:
client.close ()
client = None
# Is there something from NXT brick?
- data = reassemble(brick.sock)
+ data = self.reassemble (brick.sock)
if data:
if DEBUG:
print "[NXT->GDB] %s" % data