LLDB mainline
Diagnostics.cpp File Reference
#include "lldb/Core/Diagnostics.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Target/ExecutionContext.h"
#include "lldb/Target/Platform.h"
#include "lldb/Target/Statistics.h"
#include "lldb/Target/Target.h"
#include "lldb/Utility/Args.h"
#include "lldb/Utility/LLDBAssert.h"
#include "lldb/Utility/ProcessInfo.h"
#include "lldb/Version/Version.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>
#include <string>
#include <vector>

Go to the source code of this file.

Functions

static void WriteArtifact (const FileSpec &dir, llvm::StringRef name, llvm::StringRef content, std::vector< std::string > &files)
static std::string CaptureCommand (Debugger &debugger, llvm::StringRef command)
static bool Available (Requires requirement, const ExecutionContext &exe_ctx)

Variables

static constexpr size_t g_num_log_messages = 100
static constexpr TriageCommand g_triage_commands []

Function Documentation

◆ Available()

◆ CaptureCommand()

◆ WriteArtifact()

void WriteArtifact ( const FileSpec & dir,
llvm::StringRef name,
llvm::StringRef content,
std::vector< std::string > & files )
static

Variable Documentation

◆ g_num_log_messages

size_t g_num_log_messages = 100
staticconstexpr

Definition at line 38 of file Diagnostics.cpp.

Referenced by lldb_private::Diagnostics::Diagnostics().

◆ g_triage_commands

TriageCommand g_triage_commands[]
staticconstexpr
Initial value:
= {
{"target list", Requires::Always},
{"image list", Requires::Target},
{"process status", Requires::Process},
{"thread list", Requires::Process},
{"thread backtrace all", Requires::Process},
{"image lookup -va $pc", Requires::Frame},
{"register read", Requires::Frame},
{"frame variable", Requires::Frame},
}

Definition at line 157 of file Diagnostics.cpp.

Referenced by lldb_private::Diagnostics::CollectCommands().