aboutsummaryrefslogtreecommitdiffstats
path: root/support/gdb
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-03-11 16:46:33 -0500
committerMarti Bolivar <mbolivar@leaflabs.com>2011-03-11 16:46:33 -0500
commit80b8f6d28f23a45a0c37275c5df775bd2e989e5e (patch)
tree7f7d22b95c4d1d53b5baea73822a98719f349c11 /support/gdb
parentf41c5d82be0e0cd06c82d2d6cfce2254327dd757 (diff)
downloadlibrambutan-80b8f6d28f23a45a0c37275c5df775bd2e989e5e.tar.gz
librambutan-80b8f6d28f23a45a0c37275c5df775bd2e989e5e.zip
Cleanups; new support/gdb/gpio.gdb.
Diffstat (limited to 'support/gdb')
-rw-r--r--support/gdb/gpio.gdb12
1 files changed, 12 insertions, 0 deletions
diff --git a/support/gdb/gpio.gdb b/support/gdb/gpio.gdb
new file mode 100644
index 0000000..4376cfd
--- /dev/null
+++ b/support/gdb/gpio.gdb
@@ -0,0 +1,12 @@
+set print pretty on
+
+print "GPIOA registers:"
+p/x *GPIOA->regs
+print "GPIOB registers:"
+p/x *GPIOB->regs
+print "GPIOC registers:"
+p/x *GPIOC->regs
+print "GPIOD registers:"
+p/x *GPIOD->regs
+print "AFIO registers:"
+p/x *(struct afio_reg_map*)0x40010000