summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit26
1 files changed, 26 insertions, 0 deletions
diff --git a/.gdbinit b/.gdbinit
new file mode 100644
index 0000000..e2ea19a
--- /dev/null
+++ b/.gdbinit
@@ -0,0 +1,26 @@
+define target hookpost-remote
+ monitor arm semihosting enable
+ monitor reset halt
+ set remotetimeout 10
+end
+
+define target hookpost-extended-remote
+ monitor arm semihosting enable
+ monitor reset halt
+ set remotetimeout 10
+end
+
+define run_firmware
+ make -C build firmware
+
+ monitor reset halt
+
+ set confirm off
+ file build/firmware
+ set confirm on
+
+ load
+ continue
+end
+
+target extended-remote :3333