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

#include <GDBRemote.h>

Inheritance diagram for lldb_private::repro::GDBRemoteProvider:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::repro::GDBRemoteProvider:
Collaboration graph
[legend]

Classes

struct  Info
 

Public Member Functions

 GDBRemoteProvider (const FileSpec &directory)
 
llvm::raw_ostream * GetHistoryStream ()
 
PacketRecorderGetNewPacketRecorder ()
 
void SetCallback (std::function< void()> callback)
 
void Keep () override
 The Keep method is called when it is decided that we need to keep the data in order to provide a reproducer. More...
 
void Discard () override
 The Discard method is called when it is decided that we do not need to keep any information and will not generate a reproducer. More...
 
- Public Member Functions inherited from lldb_private::repro::Provider< GDBRemoteProvider >
const void * DynamicClassID () const override
 
llvm::StringRef GetName () const override
 
llvm::StringRef GetFile () const override
 
- Public Member Functions inherited from lldb_private::repro::ProviderBase
virtual ~ProviderBase ()=default
 
const FileSpecGetRoot () const
 
virtual const void * DynamicClassID () const =0
 
virtual llvm::StringRef GetName () const =0
 
virtual llvm::StringRef GetFile () const =0
 

Static Public Attributes

static char ID = 0
 

Private Attributes

std::function< void()> m_callback
 
std::unique_ptr< llvm::raw_fd_ostream > m_stream_up
 
std::vector< std::unique_ptr< PacketRecorder > > m_packet_recorders
 

Additional Inherited Members

- Static Public Member Functions inherited from lldb_private::repro::Provider< GDBRemoteProvider >
static const void * ClassID ()
 
- Static Public Member Functions inherited from lldb_private::repro::ProviderBase
static const void * ClassID ()
 
- Protected Member Functions inherited from lldb_private::repro::Provider< GDBRemoteProvider >
 ProviderBase (const FileSpec &root)
 
- Protected Member Functions inherited from lldb_private::repro::ProviderBase
 ProviderBase (const FileSpec &root)
 

Detailed Description

Definition at line 96 of file GDBRemote.h.

Constructor & Destructor Documentation

◆ GDBRemoteProvider()

lldb_private::repro::GDBRemoteProvider::GDBRemoteProvider ( const FileSpec directory)
inline

Definition at line 103 of file GDBRemote.h.

Member Function Documentation

◆ Discard()

void GDBRemoteProvider::Discard ( )
overridevirtual

The Discard method is called when it is decided that we do not need to keep any information and will not generate a reproducer.

Reimplemented from lldb_private::repro::ProviderBase.

Definition at line 114 of file GDBRemote.cpp.

◆ GetHistoryStream()

llvm::raw_ostream * GDBRemoteProvider::GetHistoryStream ( )

◆ GetNewPacketRecorder()

PacketRecorder * GDBRemoteProvider::GetNewPacketRecorder ( )

◆ Keep()

void GDBRemoteProvider::Keep ( )
overridevirtual

The Keep method is called when it is decided that we need to keep the data in order to provide a reproducer.

Reimplemented from lldb_private::repro::ProviderBase.

Definition at line 99 of file GDBRemote.cpp.

References lldb_private::FileSpec::CopyByAppendingPathComponent(), and lldb_private::FileSpec::GetPath().

◆ SetCallback()

void lldb_private::repro::GDBRemoteProvider::SetCallback ( std::function< void()>  callback)
inline

Definition at line 108 of file GDBRemote.h.

References m_callback.

Member Data Documentation

◆ ID

char GDBRemoteProvider::ID = 0
static

Definition at line 115 of file GDBRemote.h.

◆ m_callback

std::function<void()> lldb_private::repro::GDBRemoteProvider::m_callback
private

Definition at line 118 of file GDBRemote.h.

Referenced by SetCallback().

◆ m_packet_recorders

std::vector<std::unique_ptr<PacketRecorder> > lldb_private::repro::GDBRemoteProvider::m_packet_recorders
private

Definition at line 120 of file GDBRemote.h.

◆ m_stream_up

std::unique_ptr<llvm::raw_fd_ostream> lldb_private::repro::GDBRemoteProvider::m_stream_up
private

Definition at line 119 of file GDBRemote.h.


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