mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 21:40:22 +08:00
proc: bugfix: propagate signals we don't handle to inferior
Fixes #419 (partial)
This commit is contained in:
@ -33,9 +33,13 @@ func (t *Thread) stopped() bool {
|
||||
return state == StatusTraceStop
|
||||
}
|
||||
|
||||
func (t *Thread) resume() (err error) {
|
||||
func (t *Thread) resume() error {
|
||||
return t.resumeWithSig(0)
|
||||
}
|
||||
|
||||
func (t *Thread) resumeWithSig(sig int) (err error) {
|
||||
t.running = true
|
||||
t.dbp.execPtraceFunc(func() { err = PtraceCont(t.ID, 0) })
|
||||
t.dbp.execPtraceFunc(func() { err = PtraceCont(t.ID, sig) })
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user