Patch from Viktor Kutuzov <vkutuzov@accesssoftek.com>:
Hello everyone,
please find the attached patch for TOT and lldb-platform-work branch, which provides the following changes:
- fixed a crash in the ProcessPOSIX constructor when an executable module object is not yet created.
- added support for the multi instanciated FreeBSD platform objects (the local host and remote as example).
- enabled the remote gdb plugin on FreeBSD.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@154724 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/lldb.cpp b/source/lldb.cpp
index a4d0f57..e261091 100644
--- a/source/lldb.cpp
+++ b/source/lldb.cpp
@@ -63,6 +63,7 @@
#endif
#if defined (__FreeBSD__)
+#include "Plugins/Process/gdb-remote/ProcessGDBRemote.h"
#include "Plugins/Process/POSIX/ProcessPOSIX.h"
#include "Plugins/Process/FreeBSD/ProcessFreeBSD.h"
#endif
@@ -133,6 +134,7 @@
#endif
#if defined (__FreeBSD__)
ProcessFreeBSD::Initialize();
+ ProcessGDBRemote::Initialize();
#endif
//----------------------------------------------------------------------
// Platform agnostic plugins
@@ -207,6 +209,7 @@
#if defined (__FreeBSD__)
ProcessFreeBSD::Terminate();
+ ProcessGDBRemote::Terminate();
#endif
DynamicLoaderStatic::Terminate();