提交 8c1853d1 编写于 作者: D Derek Parker

proc/proc: Let thread set its own state

上级 eb0b4e93
......@@ -623,8 +623,6 @@ func (dbp *Process) handleBreakpointOnThread(id int) (*Thread, error) {
}
fn := dbp.goSymTable.PCToFunc(pc)
if fn != nil && fn.Name == "runtime.breakpoint" {
thread.singleStepping = true
defer func() { thread.singleStepping = false }()
for i := 0; i < 2; i++ {
if err := thread.Step(); err != nil {
return nil, err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册