gpt4 book ai didi

gdb 在 macOS 上不读取核心转储

转载 作者:行者123 更新时间:2023-12-03 06:11:43 30 4
gpt4 key购买 nike

我已经在 OSX 10.10.5 上安装了 Homebrew 的 gdb 公式,以便向 weechat 开发人员发送回溯(因为每次我这样做时,随 Homebrew 安装的 weechat 都会崩溃/退出)。

在尝试读取核心文件时遇到此问题:

gdb /usr/local/bin/weechat /cores/core.70087
GNU gdb (GDB) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin14.5.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/weechat...(no debugging symbols found)...done.
"/cores/core.70087": no core file handler recognizes format
(gdb)

我尝试使用 lldb 而不是 gdb 来执行此操作:

$ lldb /usr/local/bin/weechat /cores/core.70087
(lldb) target create "/usr/local/bin/weechat"
Current executable set to '/usr/local/bin/weechat' (x86_64).
(lldb) settings set -- target.run-args "/cores/core.70087"
(lldb) bt full
error: bt [<digit>|all]
(lldb) bt all
error: invalid process
(lldb) bt
error: invalid process
(lldb) thread backtrace
error: invalid process
(lldb)

不知道我在做什么,只是尽我所能来解决这些崩溃问题。

最佳答案

您应该能够启动 lldb 作为

$ lldb --core "/cores/core.70087"

关于gdb 在 macOS 上不读取核心转储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32731663/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com