How to access environment variables inside .gdbinit and inside gdb itself?

后端 未结 4 1219
夕颜
夕颜 2021-02-18 18:20

I am looking to set up the path for the source code when debugging with gdb. I chose to do that with a .gdbinit file.

Basically, it contains a command:

d         


        
4条回答
  •  忘掉有多难
    2021-02-18 18:48

    In my case I'd like to set global history in common $HOME/.gdbinit, so I used

    set history filename ~/.gdb_history
    

    instead of

    set history filename $HOME/.gdb_history
    

提交回复
热议问题