summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.h
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2013-12-03 21:29:45 +0000
committeremaste <emaste@FreeBSD.org>2013-12-03 21:29:45 +0000
commitc2332a8992b450e5a8924871478086bfaa393af8 (patch)
tree4fa61b263dd9025e4bb0e207c4b121aa3f020405 /contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.h
parentf89bf72d3c2e9de867cf064667a5d3f89f0b7de0 (diff)
downloadFreeBSD-src-c2332a8992b450e5a8924871478086bfaa393af8.zip
FreeBSD-src-c2332a8992b450e5a8924871478086bfaa393af8.tar.gz
lldb: Threaded inferior support for FreeBSD
This is in the process of being submitted to the upstream LLDB repository. The thread list functionality is modelled in part on GDBRemoteCommunicationClient. LLDB bug pr16696 and code review D2267 Sponsored by: DARPA, AFRL
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.h')
-rw-r--r--contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.h b/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.h
new file mode 100644
index 0000000..8741075
--- /dev/null
+++ b/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.h
@@ -0,0 +1,39 @@
+//===-- FreeBSDThread.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_FreeBSDThread_H_
+#define liblldb_FreeBSDThread_H_
+
+// Other libraries and framework includes
+#include "POSIXThread.h"
+
+//------------------------------------------------------------------------------
+// @class FreeBSDThread
+// @brief Abstraction of a FreeBSD thread.
+class FreeBSDThread
+ : public POSIXThread
+{
+public:
+
+ //------------------------------------------------------------------
+ // Constructors and destructors
+ //------------------------------------------------------------------
+ FreeBSDThread(lldb_private::Process &process, lldb::tid_t tid);
+
+ virtual ~FreeBSDThread();
+
+ //--------------------------------------------------------------------------
+ // FreeBSDThread internal API.
+
+ // POSIXThread override
+ virtual void
+ WillResume(lldb::StateType resume_state);
+};
+
+#endif // #ifndef liblldb_FreeBSDThread_H_
OpenPOWER on IntegriCloud