From b14158a8c5c4fdd440bc19c5c72f25a15699d29a Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 20 Jun 2018 23:35:54 +0200 Subject: 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 --- gdb-xds.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit 1.2.3-korg