Code Review
/
src
/
xds
/
xds-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Don't try to send signal while gdb is not started.
[src/xds/xds-gdb.git]
/
gdb-native.go
diff --git
a/gdb-native.go
b/gdb-native.go
index
a4e6189
..
4bae3d3
100644
(file)
--- 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)
}