From 569b772b82f9d47ba3b7e90b392f007f7a1a97dc Mon Sep 17 00:00:00 2001 From: polinasok <51177946+polinasok@users.noreply.github.com> Date: Mon, 12 Jul 2021 09:49:02 -0700 Subject: [PATCH] proc/gdbserial: ContinueOnce returns StopUnknown, not StopExited on non-exited error (#2577) Co-authored-by: Polina Sokolova --- pkg/proc/gdbserial/gdbserver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/proc/gdbserial/gdbserver.go b/pkg/proc/gdbserial/gdbserver.go index f42f85c462..7a72910d26 100644 --- a/pkg/proc/gdbserial/gdbserver.go +++ b/pkg/proc/gdbserial/gdbserver.go @@ -816,8 +816,9 @@ continueLoop: if err != nil { if _, exited := err.(proc.ErrProcessExited); exited { 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