plctlab / PLCT-Weekly

软件所PLCT实验室在开源领域的不定期简报

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go的debug工具Delve

realqhc opened this issue · comments

https://github.com/go-delve/delve
要检查go程序的coredump,不能用gdb,而是要用这个工具。不知道它对RV的支持如何?

更新:
service/debugger/debugger.go:32:2: found packages native (dump_linux.go) and your_linux_architecture_is_not_supported_by_delve (support_sentinel_linux.go) in /home/.../delve/pkg/proc/native

commented

ok. Let's try again.

看看是否有希望放到2023的路线图中。

commented

RISCV尚且还不支持,dlv可以作为Roadmap中新的一项。

https://github.com/go-delve/delve/blob/master/pkg/proc/native/support_sentinel_linux.go

// This file is used to detect build on unsupported GOOS/GOARCH combinations.

//go:build linux && !amd64 && !arm64 && !386
// +build linux,!amd64,!arm64,!386

package your_linux_architecture_is_not_supported_by_delve

这个工作量比较大,dlv需要不少其他项目的适配

dlv适配需要高级2个月左右,其他项目适配大概也需要1个月(发布还不确定)