110 ObjectFile *objfile = exe_module_sp->GetObjectFile();
119 if (
FileSpec fspec = HostInfo::GetXcodeContentsDirectory()) {
121 sdk_path.
Printf(
"%s/Developer/Platforms/MacOSX.platform/Developer/"
122 "SDKs/MacOSX%u.%u.sdk",
123 fspec.GetPath().c_str(), version.getMajor(),
124 *version.getMinor());
130 auto sdk_path_or_err =
132 if (!sdk_path_or_err) {
183 module_spec, module_sp, old_modules, did_create_ptr, target);
188 ObjectFile *objfile = module_sp->GetObjectFile();
189 if (objfile ==
nullptr) {
194 llvm::SmallVector<lldb::ModuleSP, 1> old_x86_64_modules;
195 bool did_create =
false;
197 module_spec_x86_64, x86_64_module_sp, &old_x86_64_modules,
198 &did_create, target);
199 if (x86_64_module_sp && x86_64_module_sp->GetObjectFile()) {
200 module_sp = x86_64_module_sp;
202 old_modules->append(old_x86_64_modules.begin(),
203 old_x86_64_modules.end());
205 *did_create_ptr = did_create;
214 old_modules, did_create_ptr);
static void ReportError(std::string message, std::optional< lldb::user_id_t > debugger_id=std::nullopt, std::once_flag *>
Report error events.
static FileSystem & Instance()
ArchSpec & GetArchitecture()
A plug-in interface definition class for object file parsers.
virtual llvm::VersionTuple GetSDKVersion()
Get the SDK OS version this object file was built with.
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, ABICreateInstance create_callback)
static bool UnregisterPlugin(ABICreateInstance create_callback)
llvm::StringRef GetString() const
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
lldb::ModuleSP GetExecutableModule()
Gets the module for the main executable.
static XcodeSDK GetAnyMacOS()
A class that represents a running process on the host machine.
std::string toString(FormatterBytecode::OpCodes op)
std::shared_ptr< lldb_private::Platform > PlatformSP
std::shared_ptr< lldb_private::Module > ModuleSP