[Lldb-commits] [PATCH] D96939: [lldb] Add a note to the core file loading error message that mentions archives

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 18 00:30:34 PST 2021


teemperor updated this revision to Diff 324551.
teemperor added a comment.

- Also clarify error message.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96939/new/

https://reviews.llvm.org/D96939

Files:
  lldb/source/Commands/CommandObjectTarget.cpp


Index: lldb/source/Commands/CommandObjectTarget.cpp
===================================================================
--- lldb/source/Commands/CommandObjectTarget.cpp
+++ lldb/source/Commands/CommandObjectTarget.cpp
@@ -425,8 +425,12 @@
           }
         } else {
           result.AppendErrorWithFormatv(
-              "Unable to find process plug-in for core file '{0}'\n",
+              "Couldn't recognize core file format of '{0}'\n",
               core_file.GetPath());
+          result.AppendMessage(
+              "note: If the file is a core file in a compressed file archive, "
+              "it first needs to be manually extracted before it can be "
+              "loaded.");
           result.SetStatus(eReturnStatusFailed);
         }
       } else {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96939.324551.patch
Type: text/x-patch
Size: 778 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210218/e438235e/attachment-0001.bin>


More information about the lldb-commits mailing list