X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=gdb-native.go;h=4bae3d3335194fb2d9b242d0037abb115528ef27;hb=662dd0f910150228ba93096d77637f697c2c3ed7;hp=a4e61898b6f95c2e0937005087b0ea944b737b47;hpb=cfe84507a37a65efcb22e7abe3247b4c7704d0a8;p=src%2Fxds%2Fxds-gdb.git 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) }