提交 9348492c 编写于 作者: A aarzilli 提交者: Derek Parker

proc: bugfix: onNextGoroutine and breakpoints with nil condition

Next will add internal breakpoints with nil condition if it can't find
the current goroutine (possibly because there isn't a current goroutine
because the runtime hasn't been initialized yet).
onNextGoroutine should skip breakpoints with nil condition, otherwise
we'll end up with an internal debugger error trying to walk a nil
expression.

Updates #893
上级 a7718bd3
......@@ -407,7 +407,7 @@ func onRuntimeBreakpoint(thread Thread) bool {
func onNextGoroutine(thread Thread, breakpoints map[uint64]*Breakpoint) (bool, error) {
var bp *Breakpoint
for i := range breakpoints {
if breakpoints[i].Internal() {
if breakpoints[i].Internal() && breakpoints[i].Cond != nil {
bp = breakpoints[i]
break
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册