summaryrefslogtreecommitdiffstats
path: root/gdb-xds.go
diff options
context:
space:
mode:
Diffstat (limited to 'gdb-xds.go')
-rw-r--r--gdb-xds.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb-xds.go b/gdb-xds.go
index 9dfb717..54f2270 100644
--- a/gdb-xds.go
+++ b/gdb-xds.go
@@ -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