summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gdbinit18
1 files changed, 15 insertions, 3 deletions
diff --git a/.gdbinit b/.gdbinit
index e5324f2..cde68dc 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -1,6 +1,3 @@
-target extended-remote :4242
-file suzumebachi.elf
-
define flash
file suzumebachi.elf
load
@@ -9,3 +6,18 @@ end
define restart
run
end
+
+define attach_swd
+mon swdp_scan
+attach 1
+end
+
+define attach_jtag
+mon jtag_scan
+attach 1
+end
+
+file suzumebachi.elf
+target extended-remote /dev/cu.usbmodem7FC181B1
+
+set mem inaccessible-by-default off