gdb-dashboard使用
1 下载.gdbinit文件
https://github.com/cyrus-and/gdb-dashboard
2 写一个gdb初始化文件
touch .gdbinit.d/init
# 我连接的是 jlink gdb server 来调试开发板
2.1 脚本内容如下
set breakpoint pending on
set confirm off
file ./demos/m4/build/helloworld.elf
target remote 192.168.111.1:2331
monitor reset
monitor halt
load
monitor reset
monitor halt
thbreak main
continue
source .gdbinit
dashboard -layout breakpoints registers assembly source stack
3 启动
gdb-multiarch -x .gdbinit.d/init