提交 0cba1fe0 编写于 作者: D Derek Parker

proc/variables: Use sched.pc instead of gopc for G location

gopc is the instruction of the `go` command that spawned this goroutine.
What we really want (unless we can get the PC from the thread) is the
value of sched.pc which is the value of the PC at the time it was
parked.
上级 2c48b60b
......@@ -204,7 +204,7 @@ func parseG(thread *Thread, gaddr uint64, deref bool) (*G, error) {
return nil, err
}
f, l, fn := thread.dbp.goSymTable.PCToLine(gopc)
f, l, fn := thread.dbp.goSymTable.PCToLine(pc)
g := &G{
Id: int(goid),
GoPC: gopc,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册