gdb不读取macOS上的核心转储

时间:2015-09-23 05:31:21

标签: gdb core lldb

我在OSX 10.10.5上安装了Homebrew中的 gdb 公式,向weechat的开发人员发送了一个回溯(因为 weechat 每次安装Homebrew都会崩溃{ {1}})。

尝试阅读核心文件时出现此问题:

/exit

我尝试使用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

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

1 个答案:

答案 0 :(得分:4)

您应该能够将lldb作为

启动
$ lldb --core "/cores/core.70087"
相关问题