How do I load .gdbinit on gdb startup?

后端 未结 5 1055
花落未央
花落未央 2021-01-12 12:16

This is a seemly trivial question but I can\'t find a simple way to accomplish this.

I have my .gdbinit file defined in the same directory as where gdb.

5条回答
  •  旧巷少年郎
    2021-01-12 12:54

    I use CodeSourcery arm-none-eabi-gdb.exe on Windows 7. Following the above instructions did not work in my case. Below command worked:

    arm-none-eabi-gdb.exe -x D:\CodeSourcery\bin\.gdbinit

提交回复
热议问题