summaryrefslogtreecommitdiffstats
path: root/gdb-common.go
blob: a6984cc149e81bdfad86e64abd5fe323ed042ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package main

import "os"

// IGDB is an interface for GDB
type IGDB interface {
	Init() (int, error)
	Close() error
	SetConfig(name string, value interface{}) error
	Start(bool) (int, error)
	Cmd() string
	Args() []string
	Env() []string
	OnError(f func(error))
	OnDisconnect(f func(error))
	OnExit(f func(int, error))
	Read(f func(timestamp, stdout, stderr string))
	InferiorRead(f func(timestamp, stdout, stderr string))
	Write(args ...interface{}) error
	SendSignal(sig os.Signal) error
}