Using the GDB with deep

OpenOCD must already be running if the gdb is to be started.

The following script can be used to start the gdb:

$Env:Path += ";D:\GNUArmEmbeddedToolchain\6-2017-q2-update\bin"
 
cd C:\WorkingDir
arm-none-eabi-gdb --command=gdbInit.txt

The “gdbInit.txt” contains commands that are processed one after the other when gdb is started. Of course, these can be adapted.

gdbInit.txt:

set extension-language .java minimal
file M:/MA/stabs/loopWithSTABS
dir M:/MA/stabs/
target remote localhost:3333
monitor reset halt
#monitor halt
load
monitor reg pc 0