Used new xds agent v1.0.0-rc1 and lib xaapiv1.
[src/xds/xds-gdb.git] / gdb-common.go
1 package main
2
3 import "os"
4
5 // IGDB is an interface for GDB
6 type IGDB interface {
7         Init() (int, error)
8         Close() error
9         SetConfig(name string, value interface{}) error
10         Start(bool) (int, error)
11         Cmd() string
12         Args() []string
13         Env() []string
14         OnError(f func(error))
15         OnDisconnect(f func(error))
16         OnExit(f func(int, error))
17         Read(f func(timestamp, stdout, stderr string))
18         InferiorRead(f func(timestamp, stdout, stderr string))
19         Write(args ...interface{}) error
20         SendSignal(sig os.Signal) error
21 }