From c6f91bc75fca805d04de6bbfad459bdf48e5eb4a Mon Sep 17 00:00:00 2001 From: Penguin Date: Sat, 26 Feb 2022 18:04:47 -0600 Subject: [PATCH] added more scripts and another readme for gdb scripts --- gdb/README.md | 5 +++++ gdb/generic_debug.gdb | 7 +++++++ gdb/generic_push.gdb | 11 +++++++++++ 3 files changed, 23 insertions(+) create mode 100644 gdb/README.md create mode 100644 gdb/generic_debug.gdb create mode 100644 gdb/generic_push.gdb diff --git a/gdb/README.md b/gdb/README.md new file mode 100644 index 0000000..25e9448 --- /dev/null +++ b/gdb/README.md @@ -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). diff --git a/gdb/generic_debug.gdb b/gdb/generic_debug.gdb new file mode 100644 index 0000000..909796e --- /dev/null +++ b/gdb/generic_debug.gdb @@ -0,0 +1,7 @@ +set pagination off +set logging file gdb.txt +set logging on +set mem inaccessible-by-default off +target extended-remote localhost:3333 +monitor reset halt +load diff --git a/gdb/generic_push.gdb b/gdb/generic_push.gdb new file mode 100644 index 0000000..a6b7af9 --- /dev/null +++ b/gdb/generic_push.gdb @@ -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 +