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 1111
1212#include " lldb/Initialization/SystemInitializer.h"
1313#include " lldb/Initialization/SystemInitializerCommon.h"
14+ #include " lldb/Utility/FileSpec.h"
1415
1516class SystemInitializerLLGS : public lldb_private ::SystemInitializerCommon {
1617public:
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 (); }) {}
1825
1926 llvm::Error Initialize () override ;
2027 void Terminate () override ;
You can’t perform that action at this time.
0 commit comments