diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-06-20 23:35:54 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-06-20 23:44:38 +0200 |
commit | b14158a8c5c4fdd440bc19c5c72f25a15699d29a (patch) | |
tree | fb1625dd41ac523d3880542d75a389af1e4ae5f5 | |
parent | f95f219c20ec7d67b11c011dff84da74a7fd63de (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.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |