diff options
| author | Ryan Brown <ribrdb@google.com> | 2015-09-16 21:20:44 +0000 |
|---|---|---|
| committer | Ryan Brown <ribrdb@google.com> | 2015-09-16 21:20:44 +0000 |
| commit | 65d4d5c3c6d742855f572d1306af93fabe015b0a (patch) | |
| tree | f6a840baed06cdc87a15c0610b45fcad359fbe10 /lldb/source/Initialization | |
| parent | 8be1847b09e358cacfb6219e8b0cdeaf77f1b9fe (diff) | |
| download | bcm5719-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.cpp | 3 |
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(); } |

