[Lldb-commits] [PATCH] D135622: [lldb] Add a "diagnostics dump" command
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 11 11:42:09 PDT 2022
clayborg added inline comments.
================
Comment at: lldb/source/Commands/CommandObjectDiagnostics.cpp:84
+ if (!directory) {
+ result.AppendError(llvm::toString(directory.takeError()));
+ result.SetStatus(eReturnStatusFailed);
----------------
Do we want to just create a temp directory if the user didn't specify one here and them emit the path to where things were saved instead of erroring out?
================
Comment at: lldb/source/Utility/Diagnostics.cpp:58
bool Diagnostics::Dump(raw_ostream &stream) {
+ Expected<FileSpec> diagnostics_dir = CreateUniqueDirectory();
----------------
How are we dumping these to the directory the user specifies the directory in "diagnostic dump"? Below we create a unique directory. Seems like this API should take a "Optional<FileSpec> directory" parameter and if it doesn't have a value, then create a unique directory?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135622/new/
https://reviews.llvm.org/D135622
More information about the lldb-commits
mailing list