[llvm] [llvm] Add DEBUGINFOD_VERBOSE and log dropped error to stderr (PR #188967)

Stefan Gränitz via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 31 01:46:27 PDT 2026


================
@@ -26,6 +26,9 @@ DebuginfodFetcher::fetch(ArrayRef<uint8_t> BuildID) const {
   Expected<std::string> PathOrErr = getCachedOrDownloadDebuginfo(BuildID);
   if (PathOrErr)
     return *PathOrErr;
-  consumeError(PathOrErr.takeError());
+  Error Err = PathOrErr.takeError();
+  if (std::getenv("DEBUGINFOD_VERBOSE"))
+    logAllUnhandledErrors(std::move(Err), llvm::errs(), "Debuginfod error: ");
+  consumeError(std::move(Err));
----------------
weliveindetail wrote:

Yes of course. Sorry that last change was hurried. Thanks!

https://github.com/llvm/llvm-project/pull/188967


More information about the llvm-commits mailing list