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

#include <InstrumentationRuntimeUBSan.h>

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

Public Member Functions

 ~InstrumentationRuntimeUBSan () override
 
lldb_private::ConstString GetPluginName () override
 
virtual lldb::InstrumentationRuntimeType GetType ()
 
lldb::ThreadCollectionSP GetBacktracesFromExtendedStopInfo (StructuredData::ObjectSP info) override
 
- 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
 
- 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

 InstrumentationRuntimeUBSan (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 (ExecutionContextRef exe_ctx_ref)
 

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 InstrumentationRuntimeUBSan.h.

Constructor & Destructor Documentation

◆ ~InstrumentationRuntimeUBSan()

InstrumentationRuntimeUBSan::~InstrumentationRuntimeUBSan ( )
override

Definition at line 41 of file InstrumentationRuntimeUBSan.cpp.

◆ InstrumentationRuntimeUBSan()

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

Definition at line 45 of file InstrumentationRuntimeUBSan.h.

Member Function Documentation

◆ Activate()

void InstrumentationRuntimeUBSan::Activate ( )
overrideprivatevirtual

◆ CheckIfRuntimeIsValid()

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

Check whether module_sp corresponds to a valid runtime library.

Implements lldb_private::InstrumentationRuntime.

Definition at line 240 of file InstrumentationRuntimeUBSan.cpp.

References lldb::eSymbolTypeAny.

◆ CreateInstance()

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

Definition at line 44 of file InstrumentationRuntimeUBSan.cpp.

◆ Deactivate()

void InstrumentationRuntimeUBSan::Deactivate ( )
private

Definition at line 288 of file InstrumentationRuntimeUBSan.cpp.

References LLDB_INVALID_BREAK_ID.

◆ GetBacktracesFromExtendedStopInfo()

lldb::ThreadCollectionSP InstrumentationRuntimeUBSan::GetBacktracesFromExtendedStopInfo ( StructuredData::ObjectSP  info)
overridevirtual

◆ GetPatternForRuntimeLibrary()

const RegularExpression & InstrumentationRuntimeUBSan::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 235 of file InstrumentationRuntimeUBSan.cpp.

◆ GetPluginName()

lldb_private::ConstString lldb_private::InstrumentationRuntimeUBSan::GetPluginName ( )
inlineoverridevirtual

Implements lldb_private::PluginInterface.

Definition at line 35 of file InstrumentationRuntimeUBSan.h.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

lldb_private::ConstString InstrumentationRuntimeUBSan::GetPluginNameStatic ( )
static

Definition at line 59 of file InstrumentationRuntimeUBSan.cpp.

Referenced by GetPluginName().

◆ GetType()

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

Definition at line 39 of file InstrumentationRuntimeUBSan.h.

References GetTypeStatic().

◆ GetTypeStatic()

lldb::InstrumentationRuntimeType InstrumentationRuntimeUBSan::GetTypeStatic ( )
static

◆ Initialize()

void InstrumentationRuntimeUBSan::Initialize ( )
static

Definition at line 48 of file InstrumentationRuntimeUBSan.cpp.

◆ NotifyBreakpointHit()

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

◆ RetrieveReportData()

StructuredData::ObjectSP InstrumentationRuntimeUBSan::RetrieveReportData ( ExecutionContextRef  exe_ctx_ref)
private

◆ Terminate()

void InstrumentationRuntimeUBSan::Terminate ( )
static

Definition at line 55 of file InstrumentationRuntimeUBSan.cpp.


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