This commit is contained in:
2026-01-03 18:52:32 -06:00
commit 3d47bd68cd
14 changed files with 479 additions and 0 deletions

5
gdb/README.md Normal file
View File

@@ -0,0 +1,5 @@
# GDB Scripts
`generic_*.gdb` scripts are designed to be used with a running openocd server. The hardware on that openocd server is mostly irrelevant to these scripts.
`bmp_*.gdb` scripts are meant to be used with the [black magic debugger](https://github.com/blackmagic-debug/blackmagic).

6
gdb/bmp_debug.gdb Normal file
View File

@@ -0,0 +1,6 @@
target extended-remote /dev/ttyBmpGdb
mon s
att 1
b main
load
r

12
gdb/bmp_push.gdb Normal file
View File

@@ -0,0 +1,12 @@
set pagination off
set logging file gdb.txt
set logging redirect on
set logging on
target extended-remote /dev/ttyBmpGdb
attach 1
b main
load
r
detach
q
y

10
gdb/generic_debug.gdb Normal file
View File

@@ -0,0 +1,10 @@
set pagination off
set logging file gdb.txt
set logging on
set mem inaccessible-by-default off
target extended-remote localhost:3333
break HardFault_Handler
break main
load
stepi

11
gdb/generic_push.gdb Normal file
View File

@@ -0,0 +1,11 @@
set pagination off
set logging file gdb.txt
set logging redirect on
set logging on
set remotetimeout 1
target extended-remote localhost:3333
load
monitor reset
q
y