llvm-capstone/lldb/source/Commands/CommandObjectDiagnostics.h
Jonas Devlieghere 0d01300aac
[lldb] Add a "diagnostics dump" command
Add a "diagnostics dump" command to, as the name implies, dump the
diagnostics to disk. The goal of this command is to let the user
generate the diagnostics in case of an issue that doesn't cause the
debugger to crash.

This command is also critical for testing, where we don't want to cause
a crash to emit the diagnostics.

Differential revision: https://reviews.llvm.org/D135622
2022-10-31 14:40:41 -07:00

30 lines
1000 B
C++

//===-- CommandObjectDiagnostics.h ------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLDB_SOURCE_COMMANDS_COMMANDOBJECTDIAGNOSTICS_H
#define LLDB_SOURCE_COMMANDS_COMMANDOBJECTDIAGNOSTICS_H
#include "lldb/Interpreter/CommandObjectMultiword.h"
namespace lldb_private {
class CommandObjectDiagnostics : public CommandObjectMultiword {
public:
CommandObjectDiagnostics(CommandInterpreter &interpreter);
~CommandObjectDiagnostics() override;
private:
CommandObjectDiagnostics(const CommandObjectDiagnostics &) = delete;
const CommandObjectDiagnostics &
operator=(const CommandObjectDiagnostics &) = delete;
};
} // namespace lldb_private
#endif // LLDB_SOURCE_COMMANDS_COMMANDOBJECTDIAGNOSTICS_H