proc/gdbserial: ContinueOnce returns StopUnknown, not StopExited on non-exited error (#2577)

Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
This commit is contained in:
polinasok 2021-07-12 09:49:02 -07:00 committed by GitHub
parent 1399f20585
commit 569b772b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -816,9 +816,10 @@ continueLoop:
if err != nil { if err != nil {
if _, exited := err.(proc.ErrProcessExited); exited { if _, exited := err.(proc.ErrProcessExited); exited {
p.exited = true p.exited = true
}
return nil, proc.StopExited, err return nil, proc.StopExited, err
} }
return nil, proc.StopUnknown, err
}
// For stubs that support qThreadStopInfo updateThreadList will // For stubs that support qThreadStopInfo updateThreadList will
// find out the reason why each thread stopped. // find out the reason why each thread stopped.