================
@@ -107,13 +112,119 @@ class CommandObjectDiagnosticsDump : public
CommandObjectParsed {
CommandOptions m_options;
};
+class CommandObjectDiagnosticsReport : public CommandObjectParsed {
+public:
+ CommandObjectDiagnosticsReport(CommandInterpreter &interpreter)
+ : CommandObjectParsed(
+ interpreter, "diagnostics report",
+ "Assemble a diagnostics bundle and file it as a bug report.",
+ nullptr) {}
+
+ ~CommandObjectDiagnosticsReport() override = default;
+
+ class CommandOptions : public Options {
+ public:
+ CommandOptions() = default;
+
+ ~CommandOptions() override = default;
+
+ Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg,
+ ExecutionContext *execution_context) override {
+ Status error;
+ const int short_option = m_getopt_table[option_idx].val;
+
+ switch (short_option) {
+ case 'd':
+ directory.SetDirectory(option_arg);
+ break;
+ case 'n':
+ no_open = true;
+ break;
+ default:
+ llvm_unreachable("Unimplemented option");
+ }
----------------
JDevlieghere wrote:
Good idea, I'll add that 👍
https://github.com/llvm/llvm-project/pull/206578
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits