summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-06-20 23:35:54 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-06-20 23:44:38 +0200
commitb14158a8c5c4fdd440bc19c5c72f25a15699d29a (patch)
treefb1625dd41ac523d3880542d75a389af1e4ae5f5
parentf95f219c20ec7d67b11c011dff84da74a7fd63de (diff)
Fixed invalid arg format (must be []byte)
Since changes in xds-server, stdin parameter is now a []byte and no longer a string (see commit 17812a0a in xds-serve repo). Change-Id: I3beac02fafb317b404dac250525ac5d4cbe7dd1e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-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