Fixed invalid arg format (must be []byte)
[src/xds/xds-gdb.git] / gdb-xds.go
index 9dfb717..54f2270 100644 (file)
@@ -401,7 +401,8 @@ func (g *GdbXds) InferiorRead(f func(timestamp, stdout, stderr string)) {
 
 // Write writes message/string into gdb stdin
 func (g *GdbXds) Write(args ...interface{}) error {
-       return g.ioSock.Emit(xaapiv1.ExecInEvent, args...)
+       s := fmt.Sprint(args...)
+       return g.ioSock.Emit(xaapiv1.ExecInEvent, []byte(s))
 }
 
 // SendSignal is used to send a signal to remote process/gdb