X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=gdb-common_windows.go;h=66cd0342d60e29c78ed579d8e61f59e56b48309c;hb=f95f219c20ec7d67b11c011dff84da74a7fd63de;hp=b233943cd286cad605743c941fb4c899db6ede7b;hpb=60974e66c57cacdc2483d74718c4bb0a993d2183;p=src%2Fxds%2Fxds-gdb.git diff --git a/gdb-common_windows.go b/gdb-common_windows.go index b233943..66cd034 100644 --- a/gdb-common_windows.go +++ b/gdb-common_windows.go @@ -1,7 +1,42 @@ +/* + * Copyright (C) 2017-2018 "IoT.bzh" + * Author Sebastien Douheret + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + package main -import "syscall" +import ( + "fmt" + "os" + "syscall" + + "github.com/Sirupsen/logrus" +) const ( syscallEBADE = syscall.EBADE ) + +func NewGdbNative(log *logrus.Logger, args []string, env []string) *GdbXds { + fmt.Printf("Native gdb debug mode not supported on Windows !") + os.Exit(int(syscall.ENOSYS)) + + return nil +} + +func isIgnoredSignal(sig os.Signal) bool { + return false +}