33#include "llvm/ADT/SmallSet.h"
34#include "llvm/Support/FileSystem.h"
35#include "llvm/Support/ThreadPool.h"
42#include "mach/machine.h"
44#include <CoreFoundation/CoreFoundation.h>
57 CFUUIDRef uuid, CFURLRef exec_url) =
nullptr;
77 return "DebugSymbols symbol locator.";
88 LLDB_LOGF(log,
"Spotlight lookup for .dSYM bundles is disabled.");
92 return_module_spec = module_spec;
103 void *handle = dlopen(
104 "/System/Library/PrivateFrameworks/DebugSymbols.framework/DebugSymbols",
105 RTLD_LAZY | RTLD_LOCAL);
108 (CFURLRef(*)(CFUUIDRef, CFURLRef))dlsym(handle,
109 "DBGCopyFullDSYMURLForUUID");
111 handle,
"DBGCopyDSYMPropertyLists");
122 llvm::ArrayRef<uint8_t> module_uuid = uuid->
GetBytes();
123 if (module_uuid.size() == 16) {
125 NULL, module_uuid[0], module_uuid[1], module_uuid[2], module_uuid[3],
126 module_uuid[4], module_uuid[5], module_uuid[6], module_uuid[7],
127 module_uuid[8], module_uuid[9], module_uuid[10], module_uuid[11],
128 module_uuid[12], module_uuid[13], module_uuid[14], module_uuid[15]));
130 if (module_uuid_ref.
get()) {
135 if (exec_fspec->
GetPath(exec_cf_path,
sizeof(exec_cf_path)))
136 exec_url.
reset(::CFURLCreateFromFileSystemRepresentation(
137 NULL, (
const UInt8 *)exec_cf_path, strlen(exec_cf_path),
142 module_uuid_ref.
get(), exec_url.
get()));
145 if (dsym_url.
get()) {
146 if (::CFURLGetFileSystemRepresentation(
147 dsym_url.
get(),
true, (UInt8 *)path,
sizeof(path) - 1)) {
149 "DebugSymbols framework returned dSYM path of %s for "
150 "UUID %s -- looking for the dSYM",
158 dsym_filespec, uuid, arch);
166 bool success =
false;
168 if (::CFURLGetFileSystemRepresentation(
169 dsym_url.
get(),
true, (UInt8 *)path,
sizeof(path) - 1)) {
171 "DebugSymbols framework returned dSYM path of %s for "
172 "UUID %s -- looking for an exec file",
179 CFDictionaryRef uuid_dict = NULL;
182 uuid_dict =
static_cast<CFDictionaryRef
>(
183 ::CFDictionaryGetValue(dict.
get(), uuid_cfstr.
get()));
192 module_sp = std::make_shared<Module>(exe_spec);
193 if (module_sp && module_sp->GetObjectFile() &&
194 module_sp->MatchesModuleSpec(exe_spec)) {
197 LLDB_LOGF(log,
"using original binary filepath %s for UUID %s",
220 "using binary from shared cache for filepath %s for "
229 if (!success && uuid_dict) {
232 uuid_dict, CFSTR(
"DBGSymbolRichExecutable")));
233 if (exec_cf_path && ::CFStringGetFileSystemRepresentation(
234 exec_cf_path, path,
sizeof(path))) {
235 LLDB_LOGF(log,
"plist bundle has exec path of %s for UUID %s",
250 if (::CFURLGetFileSystemRepresentation(
251 dsym_url.
get(),
true, (UInt8 *)path,
sizeof(path) - 1)) {
252 char *dsym_extension_pos = ::strstr(path,
".dSYM");
253 if (dsym_extension_pos) {
254 *dsym_extension_pos =
'\0';
256 "Looking for executable binary next to dSYM "
257 "bundle with name with name %s",
262 using namespace llvm::sys::fs;
263 switch (get_file_type(file_spec.
GetPath())) {
265 case file_type::directory_file:
270 if (bundle_exe_url.
get()) {
271 if (::CFURLGetFileSystemRepresentation(bundle_exe_url.
get(),
274 FileSpec bundle_exe_file_spec(path);
278 bundle_exe_file_spec, 0, 0);
279 module_specs.FindMatchingModuleSpec(
280 module_spec, matched_module_spec)) {
282 return_module_spec.
GetFileSpec() = bundle_exe_file_spec;
284 "Executable binary %s next to dSYM is "
292 case file_type::fifo_file:
293 case file_type::socket_file:
294 case file_type::file_not_found:
295 case file_type::status_error:
298 case file_type::type_unknown:
299 case file_type::regular_file:
300 case file_type::symlink_file:
301 case file_type::block_file:
302 case file_type::character_file:
305 module_specs.FindMatchingModuleSpec(
306 module_spec, matched_module_spec)) {
310 "Executable binary %s next to dSYM is "
325 return return_module_spec;
332 std::string dsym_bundle_path = dsym_bundle_fspec.
GetPath();
333 llvm::SmallString<128> buffer(dsym_bundle_path);
334 llvm::sys::path::append(buffer,
"Contents",
"Resources",
"DWARF");
337 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> vfs =
339 llvm::vfs::recursive_directory_iterator Iter(*vfs, buffer.str(), EC);
340 llvm::vfs::recursive_directory_iterator End;
341 for (; Iter != End && !EC; Iter.increment(EC)) {
342 llvm::ErrorOr<llvm::vfs::Status>
Status = vfs->status(Iter->path());
343 if (
Status->isDirectory())
349 if (module_specs.
GetSize() > 0) {
351 for (
size_t i = 0; i < module_specs.
GetSize(); ++i) {
355 if ((uuid ==
nullptr ||
374 if (module_specs.
GetSize() > 0) {
376 for (
size_t i = 0; i < module_specs.
GetSize(); ++i) {
401 FileSpec dsym_directory = exec_fspec;
404 std::string dsym_filename = filename.
AsCString();
405 dsym_filename +=
".dSYM";
415 dsym_fspec = dsym_directory;
427 std::string binary_name(filename.
AsCString());
428 auto last_dot = binary_name.find_last_of(
'.');
429 if (last_dot != std::string::npos) {
430 binary_name.erase(last_dot);
431 dsym_fspec = dsym_directory;
443 FileSpec dsym_yaa_fspec = exec_fspec;
445 std::string dsym_yaa_filename = filename.
AsCString();
446 dsym_yaa_filename +=
".dSYM.yaa";
481 LLDB_LOGF(log,
"dSYM with matching UUID & arch found at %s",
502 for (
int i = 0; i < 4; i++) {
508 if (::strchr(fn,
'.') !=
nullptr) {
511 LLDB_LOGF(log,
"dSYM with matching UUID & arch found at %s",
528 LLDB_LOGF(log,
"Spotlight lookup for .dSYM bundles is disabled.");
532 return_module_spec = module_spec;
543 void *handle = dlopen(
544 "/System/Library/PrivateFrameworks/DebugSymbols.framework/DebugSymbols",
545 RTLD_LAZY | RTLD_LOCAL);
548 (CFURLRef(*)(CFUUIDRef, CFURLRef))dlsym(handle,
549 "DBGCopyFullDSYMURLForUUID");
551 handle,
"DBGCopyDSYMPropertyLists");
562 llvm::ArrayRef<uint8_t> module_uuid = uuid->
GetBytes();
563 if (module_uuid.size() == 16) {
565 NULL, module_uuid[0], module_uuid[1], module_uuid[2], module_uuid[3],
566 module_uuid[4], module_uuid[5], module_uuid[6], module_uuid[7],
567 module_uuid[8], module_uuid[9], module_uuid[10], module_uuid[11],
568 module_uuid[12], module_uuid[13], module_uuid[14], module_uuid[15]));
570 if (module_uuid_ref.
get()) {
575 if (exec_fspec->
GetPath(exec_cf_path,
sizeof(exec_cf_path)))
576 exec_url.
reset(::CFURLCreateFromFileSystemRepresentation(
577 NULL, (
const UInt8 *)exec_cf_path, strlen(exec_cf_path),
582 module_uuid_ref.
get(), exec_url.
get()));
585 if (dsym_url.
get()) {
586 if (::CFURLGetFileSystemRepresentation(
587 dsym_url.
get(),
true, (UInt8 *)path,
sizeof(path) - 1)) {
589 "DebugSymbols framework returned dSYM path of %s for "
590 "UUID %s -- looking for the dSYM",
598 dsym_filespec, uuid, arch);
606 bool success =
false;
608 if (::CFURLGetFileSystemRepresentation(
609 dsym_url.
get(),
true, (UInt8 *)path,
sizeof(path) - 1)) {
611 "DebugSymbols framework returned dSYM path of %s for "
612 "UUID %s -- looking for an exec file",
619 CFDictionaryRef uuid_dict = NULL;
622 uuid_dict =
static_cast<CFDictionaryRef
>(
623 ::CFDictionaryGetValue(dict.
get(), uuid_cfstr.
get()));
632 module_sp = std::make_shared<Module>(exe_spec);
633 if (module_sp && module_sp->GetObjectFile() &&
634 module_sp->MatchesModuleSpec(exe_spec)) {
637 LLDB_LOGF(log,
"using original binary filepath %s for UUID %s",
660 "using binary from shared cache for filepath %s for "
669 if (!success && uuid_dict) {
672 uuid_dict, CFSTR(
"DBGSymbolRichExecutable")));
673 if (exec_cf_path && ::CFStringGetFileSystemRepresentation(
674 exec_cf_path, path,
sizeof(path))) {
675 LLDB_LOGF(log,
"plist bundle has exec path of %s for UUID %s",
690 if (::CFURLGetFileSystemRepresentation(
691 dsym_url.
get(),
true, (UInt8 *)path,
sizeof(path) - 1)) {
692 char *dsym_extension_pos = ::strstr(path,
".dSYM");
693 if (dsym_extension_pos) {
694 *dsym_extension_pos =
'\0';
696 "Looking for executable binary next to dSYM "
697 "bundle with name with name %s",
702 using namespace llvm::sys::fs;
703 switch (get_file_type(file_spec.
GetPath())) {
705 case file_type::directory_file:
710 if (bundle_exe_url.
get()) {
711 if (::CFURLGetFileSystemRepresentation(bundle_exe_url.
get(),
714 FileSpec bundle_exe_file_spec(path);
718 bundle_exe_file_spec, 0, 0);
719 module_specs.FindMatchingModuleSpec(
720 module_spec, matched_module_spec)) {
722 return_module_spec.
GetFileSpec() = bundle_exe_file_spec;
724 "Executable binary %s next to dSYM is "
732 case file_type::fifo_file:
733 case file_type::socket_file:
734 case file_type::file_not_found:
735 case file_type::status_error:
738 case file_type::type_unknown:
739 case file_type::regular_file:
740 case file_type::symlink_file:
741 case file_type::block_file:
742 case file_type::character_file:
745 module_specs.FindMatchingModuleSpec(
746 module_spec, matched_module_spec)) {
750 "Executable binary %s next to dSYM is "
774 "LocateExecutableSymbolFileDsym (file = %s, arch = %s, uuid = %p)",
779 "Locating external symbol file",
799 const std::string &command) {
801 bool success =
false;
802 if (uuid_dict != NULL && CFGetTypeID(uuid_dict) == CFDictionaryGetTypeID()) {
805 CFDictionaryRef cf_dict;
807 cf_str = (
CFStringRef)CFDictionaryGetValue((CFDictionaryRef)uuid_dict,
809 if (cf_str && CFGetTypeID(cf_str) == CFStringGetTypeID()) {
811 std::string errorstr = command;
819 (CFDictionaryRef)uuid_dict, CFSTR(
"DBGSymbolRichExecutable"));
820 if (cf_str && CFGetTypeID(cf_str) == CFStringGetTypeID()) {
825 "From dsymForUUID plist: Symbol rich executable is at '%s'",
830 cf_str = (
CFStringRef)CFDictionaryGetValue((CFDictionaryRef)uuid_dict,
831 CFSTR(
"DBGDSYMPath"));
832 if (cf_str && CFGetTypeID(cf_str) == CFStringGetTypeID()) {
835 FileSpec::Style::native);
838 LLDB_LOGF(log,
"From dsymForUUID plist: dSYM is at '%s'", str.c_str());
842 std::string DBGBuildSourcePath;
843 std::string DBGSourcePath;
852 cf_dict = (CFDictionaryRef)CFDictionaryGetValue(
853 (CFDictionaryRef)uuid_dict, CFSTR(
"DBGSourcePathRemapping"));
854 if (cf_dict && CFGetTypeID(cf_dict) == CFDictionaryGetTypeID()) {
857 bool new_style_source_remapping_dictionary =
false;
858 bool do_truncate_remapping_names =
false;
859 std::string original_DBGSourcePath_value = DBGSourcePath;
860 cf_str = (
CFStringRef)CFDictionaryGetValue((CFDictionaryRef)uuid_dict,
861 CFSTR(
"DBGVersion"));
862 if (cf_str && CFGetTypeID(cf_str) == CFStringGetTypeID()) {
865 if (!version.empty() && isdigit(version[0])) {
866 int version_number = atoi(version.c_str());
867 if (version_number > 1) {
868 new_style_source_remapping_dictionary =
true;
870 if (version_number == 2) {
871 do_truncate_remapping_names =
true;
876 CFIndex kv_pair_count = CFDictionaryGetCount((CFDictionaryRef)uuid_dict);
877 if (kv_pair_count > 0) {
882 if (keys !=
nullptr && values !=
nullptr) {
883 CFDictionaryGetKeysAndValues((CFDictionaryRef)uuid_dict,
885 (
const void **)values);
887 for (CFIndex i = 0; i < kv_pair_count; i++) {
888 DBGBuildSourcePath.clear();
889 DBGSourcePath.clear();
890 if (keys[i] && CFGetTypeID(keys[i]) == CFStringGetTypeID()) {
893 if (values[i] && CFGetTypeID(values[i]) == CFStringGetTypeID()) {
896 if (!DBGBuildSourcePath.empty() && !DBGSourcePath.empty()) {
901 if (new_style_source_remapping_dictionary &&
902 !original_DBGSourcePath_value.empty()) {
903 DBGSourcePath = original_DBGSourcePath_value;
905 if (DBGSourcePath[0] ==
'~') {
906 FileSpec resolved_source_path(DBGSourcePath.c_str());
908 DBGSourcePath = resolved_source_path.
GetPath();
915 DBGSourcePath,
true);
916 if (do_truncate_remapping_names) {
917 FileSpec build_path(DBGBuildSourcePath.c_str());
918 FileSpec source_path(DBGSourcePath.c_str());
938 cf_str = (
CFStringRef)CFDictionaryGetValue((CFDictionaryRef)uuid_dict,
939 CFSTR(
"DBGBuildSourcePath"));
940 if (cf_str && CFGetTypeID(cf_str) == CFStringGetTypeID()) {
944 cf_str = (
CFStringRef)CFDictionaryGetValue((CFDictionaryRef)uuid_dict,
945 CFSTR(
"DBGSourcePath"));
946 if (cf_str && CFGetTypeID(cf_str) == CFStringGetTypeID()) {
950 if (!DBGBuildSourcePath.empty() && !DBGSourcePath.empty()) {
951 if (DBGSourcePath[0] ==
'~') {
952 FileSpec resolved_source_path(DBGSourcePath.c_str());
954 DBGSourcePath = resolved_source_path.
GetPath();
957 DBGSourcePath,
true);
966 static std::once_flag g_once_flag;
967 static std::string g_dbgshell_command;
968 std::call_once(g_once_flag, [&]() {
969 CFTypeRef defaults_setting = CFPreferencesCopyAppValue(
970 CFSTR(
"DBGShellCommands"), CFSTR(
"com.apple.DebugSymbols"));
971 if (defaults_setting &&
972 CFGetTypeID(defaults_setting) == CFStringGetTypeID()) {
974 if (CFStringGetCString((
CFStringRef)defaults_setting, buffer,
975 sizeof(buffer), kCFStringEncodingUTF8)) {
976 g_dbgshell_command = buffer;
979 if (defaults_setting) {
980 CFRelease(defaults_setting);
983 return g_dbgshell_command;
992 if (
const char *dsymForUUID_env =
993 getenv(
"LLDB_APPLE_DSYMFORUUID_EXECUTABLE")) {
994 FileSpec dsymForUUID_executable(dsymForUUID_env);
997 return dsymForUUID_executable;
1000 static std::once_flag g_once_flag;
1001 static FileSpec g_dsymForUUID_executable;
1002 std::call_once(g_once_flag, [&]() {
1005 if (!dbgshell_command.empty()) {
1006 g_dsymForUUID_executable =
FileSpec(dbgshell_command);
1014 g_dsymForUUID_executable =
FileSpec(
"/usr/local/bin/dsymForUUID");
1020 g_dsymForUUID_executable = {};
1022 return g_dsymForUUID_executable;
1027 bool copy_executable) {
1038 if (!force_lookup && dbgshell_command.empty())
1048 if (!dsymForUUID_exe_spec)
1052 const std::string dsymForUUID_exe_path = dsymForUUID_exe_spec.
GetPath();
1053 const std::string uuid_str = uuid_ptr ? uuid_ptr->
GetAsString() :
"";
1055 std::string lookup_arg = uuid_str;
1056 if (lookup_arg.empty())
1057 lookup_arg = file_spec_ptr ? file_spec_ptr->
GetPath() :
"";
1058 if (lookup_arg.empty())
1062 command << dsymForUUID_exe_path <<
" --ignoreNegativeCache ";
1063 if (copy_executable)
1064 command <<
"--copyExecutable ";
1065 command << lookup_arg;
1068 std::string lookup_desc;
1069 if (uuid_ptr && file_spec_ptr)
1075 else if (file_spec_ptr)
1079 LLDB_LOG(log,
"Calling {0} for {1} to find dSYM: {2}", dsymForUUID_exe_path,
1082 Progress progress(
"Downloading symbol file for", lookup_desc);
1085 int exit_status = -1;
1087 std::string command_output;
1088 std::string error_output;
1096 std::chrono::seconds(
1100 if (
error.Fail() || exit_status != 0 || command_output.empty()) {
1102 "'%s' failed (exit status: %d, error: '%s', stdout: '%s', "
1105 command_output.c_str(), error_output.c_str());
1110 CFDataCreateWithBytesNoCopy(NULL, (
const UInt8 *)command_output.data(),
1111 command_output.size(), kCFAllocatorNull));
1114 (CFDictionaryRef)::CFPropertyListCreateWithData(
1115 NULL, data.
get(), kCFPropertyListImmutable, NULL, NULL));
1118 LLDB_LOGF(log,
"'%s' failed: output is not a valid plist",
1120 LLDB_LOGF(log,
"Response:\n%s\n", command_output.c_str());
1124 if (CFGetTypeID(plist.
get()) != CFDictionaryGetTypeID()) {
1125 LLDB_LOGF(log,
"'%s' failed: output plist is not a valid CFDictionary",
1130 if (!uuid_str.empty()) {
1132 CFDictionaryRef uuid_dict =
1133 (CFDictionaryRef)CFDictionaryGetValue(plist.
get(), uuid_cfstr.
get());
1138 if (
const CFIndex num_values = ::CFDictionaryGetCount(plist.
get())) {
1139 std::vector<CFStringRef> keys(num_values, NULL);
1140 std::vector<CFDictionaryRef> values(num_values, NULL);
1141 ::CFDictionaryGetKeysAndValues(plist.
get(), NULL,
1142 (
const void **)&values[0]);
1143 if (num_values == 1) {
1148 for (CFIndex i = 0; i < num_values; ++i) {
1154 module_spec = curr_module_spec;
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_LOG(log,...)
The LLDB_LOG* macros defined below are the way to emit log messages.
#define LLDB_LOGF(log,...)
#define LLDB_PLUGIN_DEFINE(PluginName)
static llvm::StringRef GetDbgShellCommand()
It's expensive to check for the DBGShellCommands defaults setting.
static CFDictionaryRef(* g_dlsym_DBGCopyDSYMPropertyLists)(CFURLRef dsym_url)
static bool LocateDSYMInVincinityOfExecutable(const ModuleSpec &module_spec, FileSpec &dsym_fspec)
static int LocateMacOSXFilesUsingDebugSymbols(const ModuleSpec &module_spec, ModuleSpec &return_module_spec)
static bool FileAtPathContainsArchAndUUID(const FileSpec &file_fspec, const ArchSpec *arch, const lldb_private::UUID *uuid)
static bool LookForDsymNextToExecutablePath(const ModuleSpec &mod_spec, const FileSpec &exec_fspec, FileSpec &dsym_fspec)
static CFURLRef(* g_dlsym_DBGCopyFullDSYMURLForUUID)(CFUUIDRef uuid, CFURLRef exec_url)
static FileSpec GetDsymForUUIDExecutable()
Get the dsymForUUID executable and cache the result so we don't end up stat'ing the binary over and o...
static bool GetModuleSpecInfoFromUUIDDictionary(CFDictionaryRef uuid_dict, ModuleSpec &module_spec, Status &error, const std::string &command)
#define LLDB_SCOPED_TIMERF(...)
CFURLRef CopyExecutableURL() const
static const char * FileSystemRepresentation(CFStringRef cf_str, std::string &str)
An architecture specification class.
bool IsCompatibleMatch(const ArchSpec &rhs) const
Shorthand for IsMatch(rhs, CompatibleMatch).
const char * GetArchitectureName() const
Returns a static string representing the current architecture.
A uniqued constant string class.
std::string GetString() const
Get the string value as a std::string.
const char * AsCString(const char *value_if_empty=nullptr) const
Get the string value as a C string.
void SetFile(llvm::StringRef path, Style style)
Change the file specified with a new path.
void AppendPathComponent(llvm::StringRef component)
const ConstString & GetFilename() const
Filename string const get accessor.
bool RemoveLastPathComponent()
Removes the last path component by replacing the current path with its parent.
size_t GetPath(char *path, size_t max_path_length, bool denormalize=true) const
Extract the full path to the file.
void Clear()
Clears the object state.
ConstString GetPathAsConstString(bool denormalize=true) const
Get the full path as a ConstString.
llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > GetVirtualFileSystem()
static FileSystem & Instance()
void Resolve(llvm::SmallVectorImpl< char > &path, bool force_make_absolute=false)
Resolve path to make it canonical.
static Status RunShellCommand(llvm::StringRef command, const FileSpec &working_dir, int *status_ptr, int *signo_ptr, std::string *command_output, std::string *error_output, const Timeout< std::micro > &timeout, bool run_in_shell=true)
Run a shell command.
lldb::SymbolSharedCacheUse GetSharedCacheBinaryLoading() const
static ModuleListProperties & GetGlobalModuleListProperties()
bool GetModuleSpecAtIndex(size_t i, ModuleSpec &module_spec) const
PathMappingList & GetSourceMappingList() const
ArchSpec & GetArchitecture()
FileSpec * GetFileSpecPtr()
FileSpec & GetSymbolFileSpec()
ArchSpec * GetArchitecturePtr()
static ModuleSpecList GetModuleSpecifications(const FileSpec &file, lldb::offset_t file_offset, lldb::offset_t file_size, lldb::DataExtractorSP=lldb::DataExtractorSP())
void Append(llvm::StringRef path, llvm::StringRef replacement, bool notify)
static bool DownloadObjectAndSymbolFile(ModuleSpec &module_spec, Status &error, bool force_lookup=true, bool copy_executable=true)
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, ABICreateInstance create_callback)
static bool UnregisterPlugin(ABICreateInstance create_callback)
static FileSpec FindSymbolFileInBundle(const FileSpec &dsym_bundle_fspec, const UUID *uuid, const ArchSpec *arch)
A Progress indicator helper class.
const char * GetData() const
llvm::StringRef GetString() const
SymbolLocatorDebugSymbols()
static llvm::StringRef GetPluginNameStatic()
static std::optional< ModuleSpec > LocateExecutableObjectFile(const ModuleSpec &module_spec)
static lldb_private::SymbolLocator * CreateInstance()
static llvm::StringRef GetPluginDescriptionStatic()
static std::optional< FileSpec > LocateExecutableSymbolFile(const ModuleSpec &module_spec, const FileSpecList &default_search_paths)
static bool DownloadObjectAndSymbolFile(ModuleSpec &module_spec, Status &error, bool force_lookup, bool copy_executable)
static std::optional< FileSpec > FindSymbolFileInBundle(const FileSpec &dsym_bundle_fspec, const UUID *uuid, const ArchSpec *arch)
Represents UUID's of various sizes.
llvm::ArrayRef< uint8_t > GetBytes() const
std::string GetAsString(llvm::StringRef separator="-") const
#define UNUSED_IF_ASSERT_DISABLED(x)
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
std::shared_ptr< lldb_private::Module > ModuleSP
const UUID & GetUUID() const