summaryrefslogtreecommitdiffstats
path: root/lldb/source/Initialization
diff options
context:
space:
mode:
authorRyan Brown <ribrdb@google.com>2015-09-16 21:20:44 +0000
committerRyan Brown <ribrdb@google.com>2015-09-16 21:20:44 +0000
commit65d4d5c3c6d742855f572d1306af93fabe015b0a (patch)
treef6a840baed06cdc87a15c0610b45fcad359fbe10 /lldb/source/Initialization
parent8be1847b09e358cacfb6219e8b0cdeaf77f1b9fe (diff)
downloadbcm5719-llvm-65d4d5c3c6d742855f572d1306af93fabe015b0a.tar.gz
bcm5719-llvm-65d4d5c3c6d742855f572d1306af93fabe015b0a.zip
Add an OperatingSystem plugin to support goroutines
The Go runtime schedules user level threads (goroutines) across real threads. This adds an OS plugin to create memory threads for goroutines. It supports the 1.4 and 1.5 go runtime. Differential Revision: http://reviews.llvm.org/D5871 llvm-svn: 247852
Diffstat (limited to 'lldb/source/Initialization')
-rw-r--r--lldb/source/Initialization/SystemInitializerCommon.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Initialization/SystemInitializerCommon.cpp b/lldb/source/Initialization/SystemInitializerCommon.cpp
index c17b979c9cb..89a3afe0947 100644
--- a/lldb/source/Initialization/SystemInitializerCommon.cpp
+++ b/lldb/source/Initialization/SystemInitializerCommon.cpp
@@ -25,6 +25,7 @@
#include "Plugins/ObjectFile/ELF/ObjectFileELF.h"
#include "Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h"
#include "Plugins/OperatingSystem/Python/OperatingSystemPython.h"
+#include "Plugins/OperatingSystem/Go/OperatingSystemGo.h"
#include "Plugins/Platform/Android/PlatformAndroid.h"
#include "Plugins/Platform/FreeBSD/PlatformFreeBSD.h"
#include "Plugins/Platform/Kalimba/PlatformKalimba.h"
@@ -142,6 +143,7 @@ SystemInitializerCommon::Initialize()
#ifndef LLDB_DISABLE_PYTHON
OperatingSystemPython::Initialize();
#endif
+ OperatingSystemGo::Initialize();
}
void
@@ -181,6 +183,7 @@ SystemInitializerCommon::Terminate()
#ifndef LLDB_DISABLE_PYTHON
OperatingSystemPython::Terminate();
#endif
+ OperatingSystemGo::Terminate();
Log::Terminate();
}
OpenPOWER on IntegriCloud