LLDB  mainline
Classes | Macros | Enumerations | Functions | Variables
CommandObjectReproducer.cpp File Reference
#include "CommandObjectReproducer.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Interpreter/OptionArgParser.h"
#include "lldb/Utility/GDBRemote.h"
#include "lldb/Utility/ProcessInfo.h"
#include "lldb/Utility/Reproducer.h"
#include <csignal>
#include "CommandOptions.inc"
Include dependency graph for CommandObjectReproducer.cpp:

Go to the source code of this file.

Classes

class  CommandObjectReproducerGenerate
 
class  CommandObjectReproducerXCrash
 
class  CommandObjectReproducerXCrash::CommandOptions
 
class  CommandObjectReproducerStatus
 
class  CommandObjectReproducerDump
 
class  CommandObjectReproducerDump::CommandOptions
 
class  CommandObjectReproducerVerify
 
class  CommandObjectReproducerVerify::CommandOptions
 

Macros

#define LLDB_OPTIONS_reproducer_dump
 
#define LLDB_OPTIONS_reproducer_xcrash
 
#define LLDB_OPTIONS_reproducer_verify
 

Enumerations

enum  ReproducerProvider {
  eReproducerProviderCommands, eReproducerProviderFiles, eReproducerProviderSymbolFiles, eReproducerProviderGDB,
  eReproducerProviderProcessInfo, eReproducerProviderVersion, eReproducerProviderWorkingDirectory, eReproducerProviderHomeDirectory,
  eReproducerProviderNone
}
 
enum  ReproducerCrashSignal { eReproducerCrashSigill, eReproducerCrashSigsegv }
 

Functions

static constexpr OptionEnumValues ReproducerProviderType ()
 
static constexpr OptionEnumValues ReproducerSignalType ()
 
template<typename T >
static llvm::Expected< T > ReadFromYAML (StringRef filename)
 
static void SetError (CommandReturnObject &result, Error err)
 
static LoaderGetLoaderFromPathOrCurrent (llvm::Optional< Loader > &loader_storage, CommandReturnObject &result, FileSpec reproducer_path)
 Create a loader from the given path if specified. More...
 

Variables

static constexpr OptionEnumValueElement g_reproducer_provider_type []
 
static constexpr OptionEnumValueElement g_reproducer_signaltype []
 

Macro Definition Documentation

◆ LLDB_OPTIONS_reproducer_dump

#define LLDB_OPTIONS_reproducer_dump

Definition at line 91 of file CommandObjectReproducer.cpp.

◆ LLDB_OPTIONS_reproducer_verify

#define LLDB_OPTIONS_reproducer_verify

Definition at line 119 of file CommandObjectReproducer.cpp.

◆ LLDB_OPTIONS_reproducer_xcrash

#define LLDB_OPTIONS_reproducer_xcrash

Definition at line 116 of file CommandObjectReproducer.cpp.

Enumeration Type Documentation

◆ ReproducerCrashSignal

Enumerator
eReproducerCrashSigill 
eReproducerCrashSigsegv 

Definition at line 94 of file CommandObjectReproducer.cpp.

◆ ReproducerProvider

Enumerator
eReproducerProviderCommands 
eReproducerProviderFiles 
eReproducerProviderSymbolFiles 
eReproducerProviderGDB 
eReproducerProviderProcessInfo 
eReproducerProviderVersion 
eReproducerProviderWorkingDirectory 
eReproducerProviderHomeDirectory 
eReproducerProviderNone 

Definition at line 27 of file CommandObjectReproducer.cpp.

Function Documentation

◆ GetLoaderFromPathOrCurrent()

static Loader* GetLoaderFromPathOrCurrent ( llvm::Optional< Loader > &  loader_storage,
CommandReturnObject result,
FileSpec  reproducer_path 
)
static

◆ ReadFromYAML()

template<typename T >
static llvm::Expected<T> ReadFromYAML ( StringRef  filename)
static

Definition at line 123 of file CommandObjectReproducer.cpp.

Referenced by CommandObjectReproducerDump::DoExecute().

◆ ReproducerProviderType()

static constexpr OptionEnumValues ReproducerProviderType ( )
staticconstexpr

Definition at line 87 of file CommandObjectReproducer.cpp.

References g_reproducer_provider_type.

◆ ReproducerSignalType()

static constexpr OptionEnumValues ReproducerSignalType ( )
staticconstexpr

Definition at line 112 of file CommandObjectReproducer.cpp.

References g_reproducer_signaltype.

◆ SetError()

static void SetError ( CommandReturnObject result,
Error  err 
)
static

Variable Documentation

◆ g_reproducer_provider_type

constexpr OptionEnumValueElement g_reproducer_provider_type[]
staticconstexpr

Definition at line 39 of file CommandObjectReproducer.cpp.

Referenced by ReproducerProviderType().

◆ g_reproducer_signaltype

constexpr OptionEnumValueElement g_reproducer_signaltype[]
staticconstexpr
Initial value:
= {
{
"SIGILL",
"Illegal instruction",
},
{
"SIGSEGV",
"Segmentation fault",
},
}

Definition at line 99 of file CommandObjectReproducer.cpp.

Referenced by ReproducerSignalType().

eReproducerCrashSigsegv
@ eReproducerCrashSigsegv
Definition: CommandObjectReproducer.cpp:96
eReproducerCrashSigill
@ eReproducerCrashSigill
Definition: CommandObjectReproducer.cpp:95