mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 17:56:45 +08:00
Handle SIGINT
Handle SIGINT by stopping the traced program and then displaying a prompt to the user for commands. If the traced process is not running, this is a noop. Closes #30
This commit is contained in:
@ -264,7 +264,7 @@ func (thread *ThreadContext) continueToReturnAddress(pc uint64, fde *frame.Frame
|
||||
// change the goroutine context on us, we there is
|
||||
// no guarantee that waiting on this tid will ever
|
||||
// return.
|
||||
wpid, _, err := trapWait(thread.Process, -1, 0)
|
||||
wpid, _, err := trapWait(thread.Process, -1)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user