LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
lldb_private::repro::Reproducer Class Reference

The reproducer enables clients to obtain access to the Generator and Loader. More...

#include <Reproducer.h>

Collaboration diagram for lldb_private::repro::Reproducer:
Collaboration graph
[legend]

Public Member Functions

 Reproducer ()=default
 
GeneratorGetGenerator ()
 
LoaderGetLoader ()
 
const GeneratorGetGenerator () const
 
const LoaderGetLoader () const
 
FileSpec GetReproducerPath () const
 
bool IsCapturing ()
 
bool IsReplaying ()
 

Static Public Member Functions

static ReproducerInstance ()
 
static llvm::Error Initialize (ReproducerMode mode, llvm::Optional< FileSpec > root)
 
static void Initialize ()
 
static bool Initialized ()
 
static void Terminate ()
 

Protected Member Functions

llvm::Error SetCapture (llvm::Optional< FileSpec > root)
 
llvm::Error SetReplay (llvm::Optional< FileSpec > root, bool passive=false)
 

Static Private Member Functions

static llvm::Optional< Reproducer > & InstanceImpl ()
 

Private Attributes

llvm::Optional< Generatorm_generator
 
llvm::Optional< Loaderm_loader
 
std::mutex m_mutex
 

Detailed Description

The reproducer enables clients to obtain access to the Generator and Loader.

Definition at line 195 of file Reproducer.h.

Constructor & Destructor Documentation

◆ Reproducer()

lldb_private::repro::Reproducer::Reproducer ( )
default

Member Function Documentation

◆ GetGenerator() [1/2]

Generator * Reproducer::GetGenerator ( )

Definition at line 74 of file Reproducer.cpp.

◆ GetGenerator() [2/2]

const Generator* lldb_private::repro::Reproducer::GetGenerator ( ) const

◆ GetLoader() [1/2]

Loader * Reproducer::GetLoader ( )

◆ GetLoader() [2/2]

const Loader* lldb_private::repro::Reproducer::GetLoader ( ) const

◆ GetReproducerPath()

FileSpec Reproducer::GetReproducerPath ( ) const

Definition at line 139 of file Reproducer.cpp.

◆ Initialize() [1/2]

void Reproducer::Initialize ( )
static

Definition at line 58 of file Reproducer.cpp.

References lldb_private::repro::Off.

◆ Initialize() [2/2]

llvm::Error Reproducer::Initialize ( ReproducerMode  mode,
llvm::Optional< FileSpec root 
)
static

◆ Initialized()

bool Reproducer::Initialized ( )
static

Definition at line 62 of file Reproducer.cpp.

◆ Instance()

Reproducer & Reproducer::Instance ( )
static

◆ InstanceImpl()

Optional< Reproducer > & Reproducer::InstanceImpl ( )
staticprivate

Definition at line 69 of file Reproducer.cpp.

◆ IsCapturing()

bool lldb_private::repro::Reproducer::IsCapturing ( )
inline

Definition at line 214 of file Reproducer.h.

References m_generator.

◆ IsReplaying()

bool lldb_private::repro::Reproducer::IsReplaying ( )
inline

Definition at line 215 of file Reproducer.h.

References m_loader.

◆ SetCapture()

llvm::Error Reproducer::SetCapture ( llvm::Optional< FileSpec root)
protected

Definition at line 102 of file Reproducer.cpp.

◆ SetReplay()

llvm::Error Reproducer::SetReplay ( llvm::Optional< FileSpec root,
bool  passive = false 
)
protected

Definition at line 119 of file Reproducer.cpp.

◆ Terminate()

void Reproducer::Terminate ( )
static

Definition at line 64 of file Reproducer.cpp.

References lldbassert.

Member Data Documentation

◆ m_generator

llvm::Optional<Generator> lldb_private::repro::Reproducer::m_generator
private

Definition at line 224 of file Reproducer.h.

Referenced by IsCapturing().

◆ m_loader

llvm::Optional<Loader> lldb_private::repro::Reproducer::m_loader
private

Definition at line 225 of file Reproducer.h.

Referenced by IsReplaying().

◆ m_mutex

std::mutex lldb_private::repro::Reproducer::m_mutex
mutableprivate

Definition at line 227 of file Reproducer.h.


The documentation for this class was generated from the following files: