[lldb] Show the DBGError if dsymForUUID can't find a dSYM

Show the user the DBGError (if available) when dsymForUUID fails.

rdar://90949180

Differential revision: https://reviews.llvm.org/D123743
This commit is contained in:
Jonas Devlieghere
2022-04-14 16:52:38 -07:00
parent 894a591cf6
commit af91446aa2
17 changed files with 534 additions and 22 deletions

View File

@@ -6967,7 +6967,8 @@ bool ObjectFileMachO::LoadCoreFileImages(lldb_private::Process &process) {
module_spec.GetFileSpec() = FileSpec(image.filename.c_str());
}
if (image.currently_executing) {
Symbols::DownloadObjectAndSymbolFile(module_spec, true);
Status error;
Symbols::DownloadObjectAndSymbolFile(module_spec, error, true);
if (FileSystem::Instance().Exists(module_spec.GetFileSpec())) {
process.GetTarget().GetOrCreateModule(module_spec, false);
}