diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-04-14 16:52:38 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-04-14 16:54:00 -0700 |
commit | af91446aa2903324c81d9e0b0a8a9fc037edc1a4 (patch) | |
tree | ff1ccde41a665a0e86ee808230f74c38b87ec045 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 894a591cf6fc542e6fc5d84222c839495a3d832f (diff) | |
download | llvm-af91446aa2903324c81d9e0b0a8a9fc037edc1a4.zip llvm-af91446aa2903324c81d9e0b0a8a9fc037edc1a4.tar.gz llvm-af91446aa2903324c81d9e0b0a8a9fc037edc1a4.tar.bz2 |
[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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index af98369..f7e2188 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -591,8 +591,10 @@ Status ProcessGDBRemote::DoConnectRemote(llvm::StringRef remote_url) { if (!module_sp) { // Force a an external lookup, if that tool is available. - if (!module_spec.GetSymbolFileSpec()) - Symbols::DownloadObjectAndSymbolFile(module_spec, true); + if (!module_spec.GetSymbolFileSpec()) { + Status error; + Symbols::DownloadObjectAndSymbolFile(module_spec, error, true); + } if (FileSystem::Instance().Exists(module_spec.GetFileSpec())) { module_sp = std::make_shared<Module>(module_spec); |