From: Sebastien Douheret Date: Thu, 30 Nov 2017 15:27:57 +0000 (+0100) Subject: Added Copyright headers. X-Git-Tag: v0.2.0~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-gdb.git;a=commitdiff_plain;h=295f712b2d3838b6576bd7ed12dbf7cf7c9e1e4f Added Copyright headers. Signed-off-by: Sebastien Douheret --- diff --git a/.vscode/settings.json b/.vscode/settings.json index 496fc84..16b3a00 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,6 +14,7 @@ "cSpell.words": [ "apiv", "iosk", "zhouhui", "ldflags", "socketio", "xdsconfig", "golib", "sebd", "ccmd", "aargs", "eenv", "gdbserver", "NOFIX", "XDSAGENT", - "xaapiv" + "xaapiv", "joho", "sdkid", "godotenv", "sigs", "igdb", "TCGETS", + "TCSETS", "tcgetattr", "tcsetattr" ] } diff --git a/Makefile b/Makefile index a951275..f786abd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,21 @@ -# Makefile used to build xds-gdb commands + ########################################################################### +# Copyright 2017 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. +########################################################################### + # Application Name TARGET=xds-gdb diff --git a/conf.d/etc/profile.d/xds-gdb.sh b/conf.d/etc/profile.d/xds-gdb.sh index 91662d2..5777adf 100644 --- a/conf.d/etc/profile.d/xds-gdb.sh +++ b/conf.d/etc/profile.d/xds-gdb.sh @@ -1,4 +1,22 @@ #!/bin/bash +########################################################################### +# Copyright 2017 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. +# +########################################################################### #---------- AGL xds-exec tool options Start ---------" [ ":${PATH}:" != *":%%XDS_INSTALL_BIN_DIR%%:"* ] && export PATH=%%XDS_INSTALL_BIN_DIR%%:${PATH} diff --git a/gdb-common.go b/gdb-common.go index a6984cc..b655f09 100644 --- a/gdb-common.go +++ b/gdb-common.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "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 "os" diff --git a/gdb-common_darwin.go b/gdb-common_darwin.go index dff1c2b..8cdb734 100644 --- a/gdb-common_darwin.go +++ b/gdb-common_darwin.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "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 ( diff --git a/gdb-common_linux.go b/gdb-common_linux.go index ad64f96..a8aa92b 100644 --- a/gdb-common_linux.go +++ b/gdb-common_linux.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "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 ( diff --git a/gdb-common_windows.go b/gdb-common_windows.go index b2ceb73..17d7643 100644 --- a/gdb-common_windows.go +++ b/gdb-common_windows.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "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 ( diff --git a/gdb-native.go b/gdb-native.go index e83f9ef..ea4001f 100644 --- a/gdb-native.go +++ b/gdb-native.go @@ -1,5 +1,23 @@ // +build !windows +/* + * Copyright (C) 2017 "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 ( @@ -14,6 +32,7 @@ import ( "github.com/kr/pty" ) +// GdbNative - Implementation of IGDB used to interfacing native gdb type GdbNative struct { log *logrus.Logger ccmd string @@ -56,7 +75,7 @@ func (g *GdbNative) Init() (int, error) { return 0, nil } -// Close +// Close frees allocated objects and close opened connections func (g *GdbNative) Close() error { g.cbOnDisconnect = nil g.cbOnExit = nil diff --git a/gdb-xds.go b/gdb-xds.go index 981b977..e2dfeb8 100644 --- a/gdb-xds.go +++ b/gdb-xds.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "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 ( @@ -15,7 +33,7 @@ import ( sio_client "github.com/sebd71/go-socket.io-client" ) -// GdbXds - +// GdbXds - Implementation of IGDB used to interfacing XDS type GdbXds struct { log *logrus.Logger ccmd string diff --git a/main.go b/main.go index dfe2a14..81b9154 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,23 @@ -// xds-gdb: a wrapper on gdb tool for X(cross) Development System. +/* + * Copyright (C) 2017 "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. + * + * + * xds-gdb: a wrapper on gdb tool for X(cross) Development System. + */ + package main import ( @@ -43,7 +62,7 @@ var logFileInitial = "/tmp/xds-gdb.log" // Application details const ( - appCopyright = "Apache-2.0" + appCopyright = "Copyright (C) 2017 IoT.bzh - Apache-2.0" defaultLogLevel = "warning" ) diff --git a/scripts/install.sh b/scripts/install.sh index 7541915..b601d12 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,6 +1,25 @@ #!/bin/bash +########################################################################### +# Copyright 2017 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. +# +# Script used to install XDS gdb tool. +# +########################################################################### -# Install XDS gdb DESTDIR=${DESTDIR:-/opt/AGL/xds/gdb}