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

◆ Capture() [2/2]

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

◆ Finalize()

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

◆ Generate()

bool SBReproducer::Generate ( )
static

Definition at line 288 of file SBReproducer.cpp.

◆ GetPath()

const char * SBReproducer::GetPath ( )
static

Definition at line 306 of file SBReproducer.cpp.

References lldb_private::ConstString::GetCString().

◆ PassiveReplay()

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

◆ Replay() [1/3]

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

Definition at line 190 of file SBReproducer.cpp.

Referenced by Replay().

◆ Replay() [2/3]

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

Definition at line 195 of file SBReproducer.cpp.

References Replay(), and lldb::SBReplayOptions::SetCheckVersion().

◆ Replay() [3/3]

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

◆ SetAutoGenerate()

bool SBReproducer::SetAutoGenerate ( bool  b)
static

Definition at line 297 of file SBReproducer.cpp.

◆ 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 314 of file SBReproducer.cpp.

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


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