pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lldb-git: Welcome to NetBSD signals



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Dec 13 06:12:27 2015 +0100
Changeset:	108f3378ff0154bd09167714decadbcf4a368946

Modified Files:
	lldb-git/distinfo
Added Files:
	lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt
	lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.cpp
	lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.h
	lldb-git/patches/patch-lldb_source_Target_UnixSignals.cpp

Log Message:
lldb-git: Welcome to NetBSD signals

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=108f3378ff0154bd09167714decadbcf4a368946

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lldb-git/distinfo                                  |  4 +++
 ...b_source_Plugins_Process_Utility_CMakeLists.txt | 12 +++++++
 ...ource_Plugins_Process_Utility_NetBSDSignals.cpp | 39 ++++++++++++++++++++++
 ..._source_Plugins_Process_Utility_NetBSDSignals.h | 36 ++++++++++++++++++++
 .../patch-lldb_source_Target_UnixSignals.cpp       | 23 +++++++++++++
 5 files changed, 114 insertions(+)

diffs:
diff --git a/lldb-git/distinfo b/lldb-git/distinfo
index 8f705cd..9ce81dd 100644
--- a/lldb-git/distinfo
+++ b/lldb-git/distinfo
@@ -20,6 +20,10 @@ SHA1 (patch-lldb_include_lldb_Utility_regex2.h) = 29baebb18b53d4b7782400bee27373
 SHA1 (patch-lldb_include_lldb_Utility_regex__impl.h) = 438ea79c00a2aab9c48af766dc4772a4bcf0b60b
 SHA1 (patch-lldb_include_lldb_Utility_regutils.h) = 32720727b719332123135536bdb4240cfc9db928
 SHA1 (patch-lldb_scripts_CMakeLists.txt) = 7381e2905b2582c49e13f1e1190f3b4192271e68
+SHA1 (patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt) = 2ec8229e61d610dba6e3d0bd1aaa414297a1cee8
+SHA1 (patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.cpp) = c3544142f3f72bc75fdf3727432c0b091c8c5f4f
+SHA1 (patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.h) = 4693774e29215b1a1abff757b31c82abe42e78b7
+SHA1 (patch-lldb_source_Target_UnixSignals.cpp) = 1c3987620e81420df7209fb727979b920bf85610
 SHA1 (patch-lldb_source_Utility_CMakeLists.txt) = 30a81e6b255c542011e2d9162f2516739df18c31
 SHA1 (patch-lldb_source_Utility_regcomp.c) = 053fb3a61237d05e5f5ef26ab7f3be78240615e6
 SHA1 (patch-lldb_source_Utility_regerror.c) = 71ed26ead0588ab2bbcc92c4e94622a988b0f19b
diff --git a/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt b/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt
new file mode 100644
index 0000000..c047fc8
--- /dev/null
+++ b/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- lldb/source/Plugins/Process/Utility/CMakeLists.txt.orig	2015-12-06 02:57:30.000000000 +0000
++++ lldb/source/Plugins/Process/Utility/CMakeLists.txt
+@@ -3,6 +3,7 @@ include_directories(../../../Utility/)
+ add_lldb_library(lldbPluginProcessUtility
+   DynamicRegisterInfo.cpp
+   FreeBSDSignals.cpp
++  NetBSDSignals.cpp
+   GDBRemoteSignals.cpp
+   HistoryThread.cpp
+   HistoryUnwind.cpp
diff --git a/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.cpp b/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.cpp
new file mode 100644
index 0000000..42cefbc
--- /dev/null
+++ b/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.cpp
@@ -0,0 +1,39 @@
+$NetBSD$
+
+--- lldb/source/Plugins/Process/Utility/NetBSDSignals.cpp.orig	2015-12-13 05:13:01.000000000 +0000
++++ lldb/source/Plugins/Process/Utility/NetBSDSignals.cpp
+@@ -0,0 +1,34 @@
++//===-- NetBSDSignals.cpp --------------------------------------*- C++ -*-===//
++//
++//                     The LLVM Compiler Infrastructure
++//
++// This file is distributed under the University of Illinois Open Source
++// License. See LICENSE.TXT for details.
++//
++//===----------------------------------------------------------------------===//
++
++// C Includes
++// C++ Includes
++// Other libraries and framework includes
++// Project includes
++#include "NetBSDSignals.h"
++
++using namespace lldb_private;
++
++NetBSDSignals::NetBSDSignals()
++    : UnixSignals()
++{
++    Reset();
++}
++
++void
++NetBSDSignals::Reset()
++{
++    UnixSignals::Reset();
++    //        SIGNO  NAME          SUPPRESS STOP   NOTIFY DESCRIPTION
++    //        ====== ============  ======== ====== ====== ===================================================
++    AddSignal (32,   "SIGPWR",     false,   true , true , "power fail/restart (not reset when caught)");
++#ifdef SIGRTMIN /* SIGRTMAX */
++    /* Kernel only; not exposed to userland yet */
++#endif
++}
diff --git a/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.h b/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.h
new file mode 100644
index 0000000..f8a1b47
--- /dev/null
+++ b/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_NetBSDSignals.h
@@ -0,0 +1,36 @@
+$NetBSD$
+
+--- lldb/source/Plugins/Process/Utility/NetBSDSignals.h.orig	2015-12-13 05:10:49.000000000 +0000
++++ lldb/source/Plugins/Process/Utility/NetBSDSignals.h
+@@ -0,0 +1,31 @@
++//===-- NetBSDSignals.h ----------------------------------------*- C++ -*-===//
++//
++//                     The LLVM Compiler Infrastructure
++//
++// This file is distributed under the University of Illinois Open Source
++// License. See LICENSE.TXT for details.
++//
++//===----------------------------------------------------------------------===//
++
++#ifndef liblldb_NetBSDSignals_H_
++#define liblldb_NetBSDSignals_H_
++
++// Project includes
++#include "lldb/Target/UnixSignals.h"
++
++namespace lldb_private {
++
++/// NetBSD specific set of Unix signals.
++class NetBSDSignals : public UnixSignals
++{
++public:
++    NetBSDSignals();
++
++private:
++    void
++    Reset() override;
++};
++
++} // namespace lldb_private
++
++#endif // liblldb_NetBSDSignals_H_
diff --git a/lldb-git/patches/patch-lldb_source_Target_UnixSignals.cpp b/lldb-git/patches/patch-lldb_source_Target_UnixSignals.cpp
new file mode 100644
index 0000000..16ed52f
--- /dev/null
+++ b/lldb-git/patches/patch-lldb_source_Target_UnixSignals.cpp
@@ -0,0 +1,23 @@
+$NetBSD$
+
+--- lldb/source/Target/UnixSignals.cpp.orig	2015-12-06 02:57:30.000000000 +0000
++++ lldb/source/Target/UnixSignals.cpp
+@@ -19,6 +19,7 @@
+ #include "Plugins/Process/Utility/FreeBSDSignals.h"
+ #include "Plugins/Process/Utility/LinuxSignals.h"
+ #include "Plugins/Process/Utility/MipsLinuxSignals.h"
++#include "Plugins/Process/Utility/NetBSDSignals.h"
+ 
+ using namespace lldb_private;
+ 
+@@ -63,8 +64,9 @@ UnixSignals::Create(const ArchSpec &arch
+         }
+         case llvm::Triple::FreeBSD:
+         case llvm::Triple::OpenBSD:
+-        case llvm::Triple::NetBSD:
+             return std::make_shared<FreeBSDSignals>();
++        case llvm::Triple::NetBSD:
++            return std::make_shared<NetBSDSignals>();
+         default:
+             return std::make_shared<UnixSignals>();
+     }


Home | Main Index | Thread Index | Old Index