diff options
Diffstat (limited to 'gdb-native.go')
-rw-r--r-- | gdb-native.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb-native.go b/gdb-native.go index a4e6189..4bae3d3 100644 --- a/gdb-native.go +++ b/gdb-native.go @@ -151,6 +151,9 @@ func (g *GdbNative) Write(args ...interface{}) error { // SendSignal is used to send a signal to remote process/gdb func (g *GdbNative) SendSignal(sig os.Signal) error { + if g.exeCmd == nil { + return fmt.Errorf("exeCmd not initialized") + } return g.exeCmd.Process.Signal(sig) } |