mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
0d01300aac
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
30 lines
1000 B
C++
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
|