[Lldb-commits] [lldb] r206319 - Add FreeBSD-specific SIGTHR and SIGLIBRT signals
Ed Maste
emaste at freebsd.org
Tue Apr 15 13:22:32 PDT 2014
Author: emaste
Date: Tue Apr 15 15:22:32 2014
New Revision: 206319
URL: http://llvm.org/viewvc/llvm-project?rev=206319&view=rev
Log:
Add FreeBSD-specific SIGTHR and SIGLIBRT signals
Added:
lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.cpp
lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.h
Modified:
lldb/trunk/source/Plugins/Process/FreeBSD/CMakeLists.txt
lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.h
Modified: lldb/trunk/source/Plugins/Process/FreeBSD/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/FreeBSD/CMakeLists.txt?rev=206319&r1=206318&r2=206319&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/CMakeLists.txt (original)
+++ lldb/trunk/source/Plugins/Process/FreeBSD/CMakeLists.txt Tue Apr 15 15:22:32 2014
@@ -6,6 +6,7 @@ include_directories(../Utility)
add_lldb_library(lldbPluginProcessFreeBSD
ProcessFreeBSD.cpp
+ FreeBSDSignals.cpp
FreeBSDThread.cpp
ProcessMonitor.cpp
)
Added: lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.cpp?rev=206319&view=auto
==============================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.cpp (added)
+++ lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.cpp Tue Apr 15 15:22:32 2014
@@ -0,0 +1,31 @@
+//===-- FreeBSDSignals.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 "FreeBSDSignals.h"
+
+FreeBSDSignals::FreeBSDSignals()
+ : UnixSignals()
+{
+ Reset();
+}
+
+void
+FreeBSDSignals::Reset()
+{
+ UnixSignals::Reset();
+
+ // SIGNO NAME SHORT NAME SUPPRESS STOP NOTIFY DESCRIPTION
+ // ====== ============ ========== ======== ====== ====== ===================================================
+ AddSignal (32, "SIGTHR", "THR", false, true , true , "thread interrupt");
+ AddSignal (33, "SIGLIBRT", "LIBRT", false, true , true , "reserved by real-time library");
+}
Added: lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.h?rev=206319&view=auto
==============================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.h (added)
+++ lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDSignals.h Tue Apr 15 15:22:32 2014
@@ -0,0 +1,28 @@
+//===-- FreeBSDSignals.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_FreeBSDSignals_H_
+#define liblldb_FreeBSDSignals_H_
+
+// Project includes
+#include "lldb/Target/UnixSignals.h"
+
+/// FreeBSD specific set of Unix signals.
+class FreeBSDSignals
+ : public lldb_private::UnixSignals
+{
+public:
+ FreeBSDSignals();
+
+private:
+ void
+ Reset();
+};
+
+#endif // liblldb_FreeBSDSignals_H_
Modified: lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.h?rev=206319&r1=206318&r2=206319&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.h (original)
+++ lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.h Tue Apr 15 15:22:32 2014
@@ -18,6 +18,7 @@
// Other libraries and framework includes
#include "lldb/Target/Process.h"
#include "lldb/Target/ThreadList.h"
+#include "FreeBSDSignals.h"
#include "ProcessMessage.h"
#include "ProcessPOSIX.h"
@@ -89,9 +90,21 @@ public:
EnablePluginLogging(lldb_private::Stream *strm,
lldb_private::Args &command);
+ //------------------------------------------------------------------
+ // Plugin process overrides
+ //------------------------------------------------------------------
+ virtual lldb_private::UnixSignals &
+ GetUnixSignals()
+ {
+ return m_freebsd_signals;
+ }
+
protected:
friend class FreeBSDThread;
+ // FreeBSD-specific signal set.
+ FreeBSDSignals m_freebsd_signals;
+
typedef std::vector<lldb::tid_t> tid_collection;
tid_collection m_suspend_tids;
tid_collection m_run_tids;
More information about the lldb-commits
mailing list