X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=gdb-native.go;h=e83f9ef79ca9dbfe3316fcc63f563f13b0717ec8;hb=refs%2Ftags%2Fv0.1.1;hp=a4e61898b6f95c2e0937005087b0ea944b737b47;hpb=60974e66c57cacdc2483d74718c4bb0a993d2183;p=src%2Fxds%2Fxds-gdb.git diff --git a/gdb-native.go b/gdb-native.go index a4e6189..e83f9ef 100644 --- a/gdb-native.go +++ b/gdb-native.go @@ -1,3 +1,5 @@ +// +build !windows + package main import ( @@ -151,6 +153,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) }