gdbserial: propagate unhandled signals back to a specific thread (#1749)

Instead of just sending unhandled signals back to the process send them
to the specific thread that received them.
This is important because:

1. debugserver does not appear to support the vCont;CXX packet without
specifying a target thread
2. the non-cooperative preemption change in an upcoming version of Go
(1.15?) will require sending signals to a specific thread.

Fixes #1744
This commit is contained in:
Alessandro Arzilli
2019-11-08 22:02:12 +01:00
committed by Derek Parker
parent e8d4ed7ece
commit 79143468ea
3 changed files with 9 additions and 10 deletions

View File

@ -4,7 +4,6 @@ package proc_test
import (
"fmt"
"runtime"
"syscall"
"testing"
"time"
@ -23,10 +22,6 @@ func (npe errIssue419) Error() string {
}
func TestIssue419(t *testing.T) {
if testBackend == "lldb" && runtime.GOOS == "darwin" {
// debugserver bug?
return
}
if testBackend == "rr" {
return
}