提交 fdda6c57 编写于 作者: D Derek Parker

Prefer PCToLine

上级 251abd2c
......@@ -131,9 +131,8 @@ func (dbp *DebuggedProcess) Step() error {
return err
}
f := dbp.GoSymTable.PCToFunc(regs.PC())
l := f.LineTable.PCToLine(regs.PC())
fmt.Printf("Stopped at: %s:%d\n", f.Name, l)
f, l, fn := dbp.GoSymTable.PCToLine(regs.PC())
fmt.Printf("Stopped at: %s %s:%d\n", fn.Name, f, l)
return nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册