Xcode/gdb 不应该在启动时加载 ~/.gdbinit 文件吗?
我有一个 ~/.gdbinit 文件,它松散地基于 如何我要在 ~/.gdbinit 中设置这些断点吗?。据称,gdb 在启动时应该获取 ~/.gdbinit。但是,它没有加载我的 - 我必须在现有断点处停止并输入“source ~/.gdbinit”,然后加载它。有没有办法让 gdb 或 Xcode 自动执行此操作?
I have a ~/.gdbinit 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Xcode 可能以
gdb -nx ...
的形式调用 gdb。Xcode 中可能有一些设置可以改变这一点。
Xcode possibly invokes gdb as
gdb -nx ...
.There probably is some setting somewhere in Xcode to change that.