@echo " WARNING: build on Windows not supported for now."
@echo "# Build darwin amd64..."
GOOS=darwin GOARCH=amd64 RELEASE=1 make -f $(ROOT_SRCDIR)/Makefile package
+ make -f $(ROOT_SRCDIR)/Makefile clean
vendor: tools/glide glide.yaml
./tools/glide install --strip-vendor
// SendSignal is used to send a signal to remote process/gdb
func (g *GdbNative) SendSignal(sig os.Signal) error {
+ if g.exeCmd == nil {
+ return fmt.Errorf("exeCmd not initialized")
+ }
return g.exeCmd.Process.Signal(sig)
}
// Init initializes gdb XDS
func (g *GdbXds) Init() (int, error) {
+ // Reset command ID (also used to enable sending of signals)
+ g.cmdID = ""
+
// Define HTTP and WS url
baseURL := g.uri
if !strings.HasPrefix(g.uri, "http://") {
g.cbOnExit = nil
g.cbRead = nil
g.cbInferiorRead = nil
+ g.cmdID = ""
return nil
}
// SendSignal is used to send a signal to remote process/gdb
func (g *GdbXds) SendSignal(sig os.Signal) error {
+ if g.cmdID == "" {
+ return fmt.Errorf("cmdID not set")
+ }
+
var body []byte
body, err := json.Marshal(apiv1.ExecSignalArgs{
CmdID: g.cmdID,