go fmt
This commit is contained in:
parent
afe77160b0
commit
91743d9472
@ -255,7 +255,6 @@ func (dbp *Process) ClearBreakpoint(addr uint64) (*Breakpoint, error) {
|
|||||||
return bp, nil
|
return bp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Status returns the status of the current main thread context.
|
// Status returns the status of the current main thread context.
|
||||||
func (dbp *Process) Status() *WaitStatus {
|
func (dbp *Process) Status() *WaitStatus {
|
||||||
return dbp.CurrentThread.Status
|
return dbp.CurrentThread.Status
|
||||||
|
@ -369,7 +369,6 @@ func (dbp *Process) wait(pid, options int) (int, *sys.WaitStatus, error) {
|
|||||||
return wpid, &status, err
|
return wpid, &status, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func killProcess(pid int) error {
|
func killProcess(pid int) error {
|
||||||
return sys.Kill(pid, sys.SIGINT)
|
return sys.Kill(pid, sys.SIGINT)
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package proc
|
package proc
|
||||||
|
|
||||||
// #include "threads_windows.h"
|
// #include "threads_windows.h"
|
||||||
import "C"
|
import "C"
|
||||||
|
@ -5,8 +5,8 @@ package proc
|
|||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"unsafe"
|
|
||||||
sys "golang.org/x/sys/unix"
|
sys "golang.org/x/sys/unix"
|
||||||
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WaitStatus is a synonym for the platform-specific WaitStatus
|
// WaitStatus is a synonym for the platform-specific WaitStatus
|
||||||
|
Loading…
Reference in New Issue
Block a user