使用 GDB 在 Mac OS X 上调试 Thunderbird

发布于 2024-08-17 06:57:39 字数 168 浏览 2 评论 0原文

今天我试图在 Thunderbird 中找到一个错误,或者更具体地说 - 它崩溃的位置(崩溃记者跳入)。 然而,当我尝试在 gdb 中运行它时,程序立即退出并显示代码 06。 然后崩溃记者再次采取行动。 这样我就永远无法到达它真正死亡的地步。

我必须通过一些选项才能使其成功启动吗?

谢谢!

I tried today to find a bug in Thunderbird, or more specifically - the location where it crashes ( the Crash reporter jumps in ).
However when I try to run it in gdb, the program immediately exits with code 06.
And then the Crash reporter springs into action again.
This way, I can never get to the actual point where it dies.

Is there some option I have to pass to make it start successfully?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

青衫儰鉨ミ守葔 2024-08-24 06:57:39

您需要设置 DYLD_LIBRARY_PATH 环境变量来告诉加载程序这是所有共享库所在的位置。

首先进入你的.app的MacOS目录。

cd blah/dist/Daily.app/Contents/MacOS

然后设置 DYLD_LIBRARY_PATH 变量:

export DYLD_LIBRARY_PATH=`pwd`

最后运行 thunderbird 可执行文件。

gdb thunderbird

然后它应该可以正常运行。

调试 Mozilla 文档中都提到了这一点:此处

You need to set the DYLD_LIBRARY_PATH environment variable to tell the loader that this is where all the shared libraries are.

First go to the MacOS directory of you .app.

cd blah/dist/Daily.app/Contents/MacOS

And then set the DYLD_LIBRARY_PATH variable:

export DYLD_LIBRARY_PATH=`pwd`

And finally run the thunderbird executable.

gdb thunderbird

It should then run properly.

This is all mentioned in the Debugging Mozilla docs: Here.

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