LLDB mainline
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
lldb_private::SectionLoadHistory Class Reference

#include <SectionLoadHistory.h>

Public Types

enum  : unsigned { eStopIDNow = UINT32_MAX }
 

Public Member Functions

 SectionLoadHistory ()=default
 
 ~SectionLoadHistory ()
 
SectionLoadListGetCurrentSectionLoadList ()
 
bool IsEmpty () const
 
void Clear ()
 
uint32_t GetLastStopID () const
 
lldb::addr_t GetSectionLoadAddress (uint32_t stop_id, const lldb::SectionSP &section_sp)
 
bool ResolveLoadAddress (uint32_t stop_id, lldb::addr_t load_addr, Address &so_addr)
 
bool SetSectionLoadAddress (uint32_t stop_id, const lldb::SectionSP &section_sp, lldb::addr_t load_addr, bool warn_multiple=false)
 
bool SetSectionUnloaded (uint32_t stop_id, const lldb::SectionSP &section_sp, lldb::addr_t load_addr)
 
size_t SetSectionUnloaded (uint32_t stop_id, const lldb::SectionSP &section_sp)
 
void Dump (Stream &s, Target *target)
 

Protected Types

typedef std::map< uint32_t, lldb::SectionLoadListSPStopIDToSectionLoadList
 

Protected Member Functions

SectionLoadListGetSectionLoadListForStopID (uint32_t stop_id, bool read_only)
 

Protected Attributes

StopIDToSectionLoadList m_stop_id_to_section_load_list
 
std::recursive_mutex m_mutex
 

Private Member Functions

 SectionLoadHistory (const SectionLoadHistory &)=delete
 
const SectionLoadHistoryoperator= (const SectionLoadHistory &)=delete
 

Detailed Description

Definition at line 19 of file SectionLoadHistory.h.

Member Typedef Documentation

◆ StopIDToSectionLoadList

Definition at line 73 of file SectionLoadHistory.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : unsigned
Enumerator
eStopIDNow 

Definition at line 21 of file SectionLoadHistory.h.

Constructor & Destructor Documentation

◆ SectionLoadHistory() [1/2]

lldb_private::SectionLoadHistory::SectionLoadHistory ( )
default

◆ ~SectionLoadHistory()

lldb_private::SectionLoadHistory::~SectionLoadHistory ( )
inline

Definition at line 29 of file SectionLoadHistory.h.

References Clear().

◆ SectionLoadHistory() [2/2]

lldb_private::SectionLoadHistory::SectionLoadHistory ( const SectionLoadHistory )
privatedelete

Member Function Documentation

◆ Clear()

void SectionLoadHistory::Clear ( )

◆ Dump()

void SectionLoadHistory::Dump ( Stream s,
Target target 
)

◆ GetCurrentSectionLoadList()

SectionLoadList & SectionLoadHistory::GetCurrentSectionLoadList ( )

◆ GetLastStopID()

uint32_t SectionLoadHistory::GetLastStopID ( ) const

◆ GetSectionLoadAddress()

addr_t SectionLoadHistory::GetSectionLoadAddress ( uint32_t  stop_id,
const lldb::SectionSP section_sp 
)

◆ GetSectionLoadListForStopID()

SectionLoadList * SectionLoadHistory::GetSectionLoadListForStopID ( uint32_t  stop_id,
bool  read_only 
)
protected

◆ IsEmpty()

bool SectionLoadHistory::IsEmpty ( ) const

Definition at line 17 of file SectionLoadHistory.cpp.

References m_mutex, and m_stop_id_to_section_load_list.

◆ operator=()

const SectionLoadHistory & lldb_private::SectionLoadHistory::operator= ( const SectionLoadHistory )
privatedelete

◆ ResolveLoadAddress()

bool SectionLoadHistory::ResolveLoadAddress ( uint32_t  stop_id,
lldb::addr_t  load_addr,
Address so_addr 
)

◆ SetSectionLoadAddress()

bool SectionLoadHistory::SetSectionLoadAddress ( uint32_t  stop_id,
const lldb::SectionSP section_sp,
lldb::addr_t  load_addr,
bool  warn_multiple = false 
)

◆ SetSectionUnloaded() [1/2]

size_t SectionLoadHistory::SetSectionUnloaded ( uint32_t  stop_id,
const lldb::SectionSP section_sp 
)

◆ SetSectionUnloaded() [2/2]

bool SectionLoadHistory::SetSectionUnloaded ( uint32_t  stop_id,
const lldb::SectionSP section_sp,
lldb::addr_t  load_addr 
)

Member Data Documentation

◆ m_mutex

std::recursive_mutex lldb_private::SectionLoadHistory::m_mutex
mutableprotected

◆ m_stop_id_to_section_load_list

StopIDToSectionLoadList lldb_private::SectionLoadHistory::m_stop_id_to_section_load_list
protected

Definition at line 74 of file SectionLoadHistory.h.

Referenced by Clear(), Dump(), GetLastStopID(), GetSectionLoadListForStopID(), and IsEmpty().


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