Code Review
/
src
/
xds
/
xds-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed invalid arg format (must be []byte)
[src/xds/xds-gdb.git]
/
gdb-xds.go
diff --git
a/gdb-xds.go
b/gdb-xds.go
index
9dfb717
..
54f2270
100644
(file)
--- 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 {
// 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
}
// SendSignal is used to send a signal to remote process/gdb