How do I load .gdbinit on gdb startup?

后端 未结 5 1014
花落未央
花落未央 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:52

    I launch xt-gdb that comes with Xtensa tool chain with -iex -ix parameters as follows:

    xt-gdb -iex "set auto-load safe-path Path\to\gdbinit\dir" -ix Path\to\gdbinit\dir.gdbinit

提交回复
热议问题