LLDB  mainline
Static Public Member Functions | List of all members
lldb::SBReproducer Class Reference

The SBReproducer class is special because it bootstraps the capture and replay of SB API calls. More...

#include <SBReproducer.h>

Static Public Member Functions

static const char * Capture ()
 
static const char * Capture (const char *path)
 
static const char * Replay (const char *path)
 
static const char * Replay (const char *path, bool skip_version_check)
 
static const char * Replay (const char *path, const SBReplayOptions &options)
 
static const char * PassiveReplay (const char *path)
 
static const char * Finalize (const char *path)
 
static const char * GetPath ()
 
static bool SetAutoGenerate (bool b)
 
static bool Generate ()
 
static void SetWorkingDirectory (const char *path)
 The working directory is set to the current working directory when the reproducers are initialized. More...
 

Detailed Description

The SBReproducer class is special because it bootstraps the capture and replay of SB API calls.

As a result we cannot rely on any other SB objects in the interface or implementation of this class.

Definition at line 43 of file SBReproducer.h.

Member Function Documentation

◆ Capture() [1/2]

const char * SBReproducer::Capture ( )
static

Definition at line 67 of file SBReproducer.cpp.

References error(), LLDB_INSTRUMENT, string(), and lldb_private::toString().

◆ Capture() [2/2]

const char * SBReproducer::Capture ( const char *  path)
static

Definition at line 78 of file SBReproducer.cpp.

References error(), LLDB_INSTRUMENT_VA, string(), and lldb_private::toString().

◆ Finalize()

const char * SBReproducer::Finalize ( const char *  path)
static

Definition at line 111 of file SBReproducer.cpp.

References LLDB_INSTRUMENT_VA.

◆ Generate()

bool SBReproducer::Generate ( )
static

Definition at line 116 of file SBReproducer.cpp.

References LLDB_INSTRUMENT.

◆ GetPath()

const char * SBReproducer::GetPath ( )
static

Definition at line 136 of file SBReproducer.cpp.

References lldb_private::ConstString::GetCString(), and LLDB_INSTRUMENT.

◆ PassiveReplay()

const char * SBReproducer::PassiveReplay ( const char *  path)
static

Definition at line 90 of file SBReproducer.cpp.

References LLDB_INSTRUMENT_VA.

◆ Replay() [1/3]

const char * SBReproducer::Replay ( const char *  path)
static

Definition at line 95 of file SBReproducer.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by Replay().

◆ Replay() [2/3]

const char * SBReproducer::Replay ( const char *  path,
bool  skip_version_check 
)
static

Definition at line 100 of file SBReproducer.cpp.

References LLDB_INSTRUMENT_VA, and Replay().

◆ Replay() [3/3]

const char * SBReproducer::Replay ( const char *  path,
const SBReplayOptions options 
)
static

Definition at line 105 of file SBReproducer.cpp.

References LLDB_INSTRUMENT_VA, and Replay().

◆ SetAutoGenerate()

bool SBReproducer::SetAutoGenerate ( bool  b)
static

Definition at line 126 of file SBReproducer.cpp.

References LLDB_INSTRUMENT_VA.

◆ SetWorkingDirectory()

void SBReproducer::SetWorkingDirectory ( const char *  path)
static

The working directory is set to the current working directory when the reproducers are initialized.

This method allows setting a different working directory. This is used by the API test suite which temporarily changes the directory to where the test lives. This is a NO-OP in every mode but capture.

Definition at line 145 of file SBReproducer.cpp.

References fp, lldb_private::repro::Reproducer::Instance(), LLDB_INSTRUMENT_VA, and lldb_private::repro::DirectoryProvider< T >::SetDirectory().


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