LLDB  mainline
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
lldb_private::InstrumentationRuntimeASan Class Reference

#include <InstrumentationRuntimeASan.h>

Inheritance diagram for lldb_private::InstrumentationRuntimeASan:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::InstrumentationRuntimeASan:
Collaboration graph
[legend]

Public Member Functions

 ~InstrumentationRuntimeASan () override
 
lldb_private::ConstString GetPluginName () override
 
virtual lldb::InstrumentationRuntimeType GetType ()
 
- Public Member Functions inherited from lldb_private::InstrumentationRuntime
void ModulesDidLoad (lldb_private::ModuleList &module_list)
 Look for the instrumentation runtime in module_list. More...
 
bool IsActive () const
 
virtual lldb::ThreadCollectionSP GetBacktracesFromExtendedStopInfo (StructuredData::ObjectSP info)
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (const PluginInterface &)=delete
 

Static Public Member Functions

static lldb::InstrumentationRuntimeSP CreateInstance (const lldb::ProcessSP &process_sp)
 
static void Initialize ()
 
static void Terminate ()
 
static lldb_private::ConstString GetPluginNameStatic ()
 
static lldb::InstrumentationRuntimeType GetTypeStatic ()
 
- Static Public Member Functions inherited from lldb_private::InstrumentationRuntime
static void ModulesDidLoad (lldb_private::ModuleList &module_list, Process *process, InstrumentationRuntimeCollection &runtimes)
 

Private Member Functions

 InstrumentationRuntimeASan (const lldb::ProcessSP &process_sp)
 
const RegularExpressionGetPatternForRuntimeLibrary () override
 Return a regular expression which can be used to identify a valid version of the runtime library. More...
 
bool CheckIfRuntimeIsValid (const lldb::ModuleSP module_sp) override
 Check whether module_sp corresponds to a valid runtime library. More...
 
void Activate () override
 Register a breakpoint in the runtime library and perform any other necessary initialization. More...
 
void Deactivate ()
 
StructuredData::ObjectSP RetrieveReportData ()
 
std::string FormatDescription (StructuredData::ObjectSP report)
 

Static Private Member Functions

static bool NotifyBreakpointHit (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
 

Additional Inherited Members

- Protected Member Functions inherited from lldb_private::InstrumentationRuntime
 InstrumentationRuntime (const lldb::ProcessSP &process_sp)
 
lldb::ProcessSP GetProcessSP ()
 
lldb::ModuleSP GetRuntimeModuleSP ()
 
void SetRuntimeModuleSP (lldb::ModuleSP module_sp)
 
lldb::user_id_t GetBreakpointID () const
 
void SetBreakpointID (lldb::user_id_t ID)
 
void SetActive (bool IsActive)
 

Detailed Description

Definition at line 19 of file InstrumentationRuntimeASan.h.

Constructor & Destructor Documentation

◆ ~InstrumentationRuntimeASan()

InstrumentationRuntimeASan::~InstrumentationRuntimeASan ( )
override

Definition at line 58 of file InstrumentationRuntimeASan.cpp.

◆ InstrumentationRuntimeASan()

lldb_private::InstrumentationRuntimeASan::InstrumentationRuntimeASan ( const lldb::ProcessSP &  process_sp)
inlineprivate

Definition at line 41 of file InstrumentationRuntimeASan.h.

Member Function Documentation

◆ Activate()

void InstrumentationRuntimeASan::Activate ( )
overrideprivatevirtual

◆ CheckIfRuntimeIsValid()

bool InstrumentationRuntimeASan::CheckIfRuntimeIsValid ( const lldb::ModuleSP  module_sp)
overrideprivatevirtual

Check whether module_sp corresponds to a valid runtime library.

Implements lldb_private::InstrumentationRuntime.

Definition at line 68 of file InstrumentationRuntimeASan.cpp.

References lldb::eSymbolTypeAny.

◆ CreateInstance()

lldb::InstrumentationRuntimeSP InstrumentationRuntimeASan::CreateInstance ( const lldb::ProcessSP &  process_sp)
static

Definition at line 36 of file InstrumentationRuntimeASan.cpp.

◆ Deactivate()

void InstrumentationRuntimeASan::Deactivate ( )
private

Definition at line 318 of file InstrumentationRuntimeASan.cpp.

References LLDB_INVALID_BREAK_ID.

◆ FormatDescription()

std::string InstrumentationRuntimeASan::FormatDescription ( StructuredData::ObjectSP  report)
private

Definition at line 194 of file InstrumentationRuntimeASan.cpp.

References string().

Referenced by NotifyBreakpointHit().

◆ GetPatternForRuntimeLibrary()

const RegularExpression & InstrumentationRuntimeASan::GetPatternForRuntimeLibrary ( )
overrideprivatevirtual

Return a regular expression which can be used to identify a valid version of the runtime library.

Implements lldb_private::InstrumentationRuntime.

Definition at line 61 of file InstrumentationRuntimeASan.cpp.

◆ GetPluginName()

lldb_private::ConstString lldb_private::InstrumentationRuntimeASan::GetPluginName ( )
inlineoverridevirtual

Implements lldb_private::PluginInterface.

Definition at line 34 of file InstrumentationRuntimeASan.h.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

lldb_private::ConstString InstrumentationRuntimeASan::GetPluginNameStatic ( )
static

Definition at line 50 of file InstrumentationRuntimeASan.cpp.

Referenced by GetPluginName().

◆ GetType()

virtual lldb::InstrumentationRuntimeType lldb_private::InstrumentationRuntimeASan::GetType ( )
inlinevirtual

Definition at line 38 of file InstrumentationRuntimeASan.h.

References GetTypeStatic().

◆ GetTypeStatic()

lldb::InstrumentationRuntimeType InstrumentationRuntimeASan::GetTypeStatic ( )
static

Definition at line 54 of file InstrumentationRuntimeASan.cpp.

References lldb::eInstrumentationRuntimeTypeAddressSanitizer.

Referenced by GetType().

◆ Initialize()

void InstrumentationRuntimeASan::Initialize ( )
static

Definition at line 40 of file InstrumentationRuntimeASan.cpp.

◆ NotifyBreakpointHit()

bool InstrumentationRuntimeASan::NotifyBreakpointHit ( void *  baton,
StoppointCallbackContext context,
lldb::user_id_t  break_id,
lldb::user_id_t  break_loc_id 
)
staticprivate

◆ RetrieveReportData()

StructuredData::ObjectSP InstrumentationRuntimeASan::RetrieveReportData ( )
private

◆ Terminate()

void InstrumentationRuntimeASan::Terminate ( )
static

Definition at line 46 of file InstrumentationRuntimeASan.cpp.


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