scripts: sample GDB Linux scripts

This commit is contained in:
Andrey Gusakov 2024-09-23 12:29:00 +03:00 committed by rusefillc
parent 4a581981f1
commit 2fe4fdc0db
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# copy this file to firmware directory and rename to '.gdbinit' to make gdb automaticly connect to OpenOCD and upload firmware on start
# see gdb.sh
target extended-remote localhost:3333
file build/rusefi.elf
load
set breakpoint auto-hw on
set remote hardware-breakpoint-limit 8
set remote hardware-watchpoint-limit 4

View File

@ -0,0 +1,4 @@
#!/bin/sh
# nothing special
arm-none-eabi-gdb $*