File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#include " lldb/Initialization/SystemInitializer.h"
13
13
#include " lldb/Initialization/SystemInitializerCommon.h"
14
+ #include " lldb/Utility/FileSpec.h"
14
15
15
16
class SystemInitializerLLGS : public lldb_private ::SystemInitializerCommon {
16
17
public:
17
- SystemInitializerLLGS () : SystemInitializerCommon(nullptr ) {}
18
+ SystemInitializerLLGS ()
19
+ : SystemInitializerCommon(
20
+ // Finding the shared libraries directory on lldb-server is broken
21
+ // since lldb-server isn't dynamically linked with liblldb.so.
22
+ // Clearing the filespec here causes GetShlibDir to fail and
23
+ // GetSupportExeDir to fall-back to using the binary path instead.
24
+ [](lldb_private::FileSpec &file) { file.Clear (); }) {}
18
25
19
26
llvm::Error Initialize () override ;
20
27
void Terminate () override ;
You can’t perform that action at this time.
0 commit comments