teemperor created this revision.
teemperor added a reviewer: LLDB.
teemperor added a project: LLDB.
Herald added a subscriber: JDevlieghere.
teemperor requested review of this revision.
Core files are frequently compressed in some compressed archive and users
aren't aware that LLDB can't
extract the core file for them. Because of this there is usually one question
every day on why
LLDB is giving them a cryptic error message when they open their compressed
core file:
error: Unable to find process plug-in for core file '/tmp/core.gz
This just adds a note that compressed core files need to be decompressed first
before LLDB can do anything
with them.
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
@@ -427,6 +427,10 @@
result.AppendErrorWithFormatv(
"Unable to find process plug-in for core file '{0}'\n",
core_file.GetPath());
+ result.AppendMessage(
+ "Note: If the passed file is a compressed file archive
containing"
+ " a core file, you first need to manually extract the core file "
+ " from the archive before trying to load it.\n");
result.SetStatus(eReturnStatusFailed);
}
} else {
Index: lldb/source/Commands/CommandObjectTarget.cpp
===================================================================
--- lldb/source/Commands/CommandObjectTarget.cpp
+++ lldb/source/Commands/CommandObjectTarget.cpp
@@ -427,6 +427,10 @@
result.AppendErrorWithFormatv(
"Unable to find process plug-in for core file '{0}'\n",
core_file.GetPath());
+ result.AppendMessage(
+ "Note: If the passed file is a compressed file archive containing"
+ " a core file, you first need to manually extract the core file "
+ " from the archive before trying to load it.\n");
result.SetStatus(eReturnStatusFailed);
}
} else {
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits