Xcode/gdb 不应该在启动时加载 ~/.gdbinit 文件吗?

发布于 2024-09-28 08:05:21 字数 265 浏览 3 评论 0原文

我有一个 ~/.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花落人断肠 2024-10-05 08:05:21

Xcode 可能以 gdb -nx ... 的形式调用 gdb。

Xcode 中可能有一些设置可以改变这一点。

Xcode possibly invokes gdb as gdb -nx ....

There probably is some setting somewhere in Xcode to change that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文