Shouldn't Xcode/gdb load the ~/.gdbinit file on launch?
I have a ~/.gdb开发者_如何转开发init file which is loosely based on How do I set these break points in ~/.gdbinit?. Allegedly, gdb is supposed to source ~/.gdbinit when it launches. However, it's not loading mine - I have to stop at an existing breakpoint and type in 'source ~/.gdbinit', and then it loads it. Is there a way to have gdb or Xcode do this automatically?
Xcode possibly invokes gdb as gdb -nx ...
.
There probably is some setting somewhere in Xcode to change that.
精彩评论