使用delve分析GO语言核心转储时出现“未识别的核心格式”错误

4

我正在尝试使用delve分析gcore生成的GO程序的核心文件。以下是我遵循的步骤。但我收到了“无法识别的格式错误”。

$go version
go version go1.13.1 darwin/amd64
$/Users/sudhakar/go/bin/dlv version
Delve Debugger
Version: 1.4.0
Build: 37bee98a8821843314b561bc6ab328dfff2aad1b
$./hello &
[1] 72335
$gcore 72335
$sudo gcore 72335
$/Users/sudhakar/go/bin/dlv core ./hello /cores/hello-72335-20200427T185443Z 
unrecognized core format
1个回答

4

在发布这篇文章的时候,delve不支持darwin/amd64。

参考:https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_core.md

但是随着时间的推移,这种情况可能会改变(delve可能会添加对此架构的支持)enter image description here附上文档的截图(在发布这篇文章的时候)

特别感谢delve-dev邮件列表成员(Choudhary Sourya Vastayan)指出了这一点。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接