Index: source/Plugins/Process/Linux/NativeProcessLinux.h =================================================================== --- source/Plugins/Process/Linux/NativeProcessLinux.h +++ source/Plugins/Process/Linux/NativeProcessLinux.h @@ -48,6 +48,9 @@ // --------------------------------------------------------------------- // Public Static Methods // --------------------------------------------------------------------- + static void + Initialize(); + static lldb_private::Error LaunchProcess ( Module *exe_module, Index: source/Plugins/Process/Linux/NativeProcessLinux.cpp =================================================================== --- source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -1125,6 +1125,27 @@ // Public Static Methods // ----------------------------------------------------------------------------- +void +NativeProcessLinux::Initialize() +{ + static ConstString g_name("linux"); + static bool g_initialized = false; + + if (!g_initialized) + { + g_initialized = true; + + Log::Callbacks log_callbacks = { + ProcessPOSIXLog::DisableLog, + ProcessPOSIXLog::EnableLog, + ProcessPOSIXLog::ListLogCategories + }; + + Log::RegisterLogChannel (g_name, log_callbacks); + ProcessPOSIXLog::RegisterPluginName (g_name); + } +} + lldb_private::Error NativeProcessLinux::LaunchProcess ( lldb_private::Module *exe_module, Index: source/lldb.cpp =================================================================== --- source/lldb.cpp +++ source/lldb.cpp @@ -81,6 +81,7 @@ #if defined (__linux__) #include "Plugins/Process/Linux/ProcessLinux.h" +#include "Plugins/Process/Linux/NativeProcessLinux.h" #endif #if defined (_WIN32) @@ -191,6 +192,13 @@ ScriptInterpreterPython::InitializePrivate(); OperatingSystemPython::Initialize(); #endif + +#if defined (__linux__) + //---------------------------------------------------------------------- + // Linux hosted plugins + //---------------------------------------------------------------------- + NativeProcessLinux::Initialize(); +#endif } }