LLDB mainline
|
#include <SectionLoadHistory.h>
Public Types | |
enum | : unsigned { eStopIDNow = UINT32_MAX } |
Public Member Functions | |
SectionLoadHistory ()=default | |
~SectionLoadHistory () | |
SectionLoadList & | GetCurrentSectionLoadList () |
bool | IsEmpty () const |
void | Clear () |
uint32_t | GetLastStopID () const |
lldb::addr_t | GetSectionLoadAddress (uint32_t stop_id, const lldb::SectionSP §ion_sp) |
bool | ResolveLoadAddress (uint32_t stop_id, lldb::addr_t load_addr, Address &so_addr) |
bool | SetSectionLoadAddress (uint32_t stop_id, const lldb::SectionSP §ion_sp, lldb::addr_t load_addr, bool warn_multiple=false) |
bool | SetSectionUnloaded (uint32_t stop_id, const lldb::SectionSP §ion_sp, lldb::addr_t load_addr) |
size_t | SetSectionUnloaded (uint32_t stop_id, const lldb::SectionSP §ion_sp) |
void | Dump (Stream &s, Target *target) |
Protected Types | |
typedef std::map< uint32_t, lldb::SectionLoadListSP > | StopIDToSectionLoadList |
Protected Member Functions | |
SectionLoadList * | GetSectionLoadListForStopID (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 SectionLoadHistory & | operator= (const SectionLoadHistory &)=delete |
Definition at line 19 of file SectionLoadHistory.h.
|
protected |
Definition at line 73 of file SectionLoadHistory.h.
anonymous enum : unsigned |
Enumerator | |
---|---|
eStopIDNow |
Definition at line 21 of file SectionLoadHistory.h.
|
default |
|
inline |
Definition at line 29 of file SectionLoadHistory.h.
References Clear().
|
privatedelete |
void SectionLoadHistory::Clear | ( | ) |
Definition at line 22 of file SectionLoadHistory.cpp.
References m_mutex, and m_stop_id_to_section_load_list.
Referenced by lldb_private::Target::ClearAllLoadedSections(), lldb_private::Target::ClearModules(), lldb_private::Target::DeleteCurrentProcess(), lldb_private::Target::Destroy(), and ~SectionLoadHistory().
Definition at line 155 of file SectionLoadHistory.cpp.
References lldb_private::Stream::EOL(), m_mutex, m_stop_id_to_section_load_list, and lldb_private::Stream::Printf().
SectionLoadList & SectionLoadHistory::GetCurrentSectionLoadList | ( | ) |
Definition at line 95 of file SectionLoadHistory.cpp.
References eStopIDNow, GetSectionLoadListForStopID(), and m_mutex.
Referenced by lldb_private::Target::GetSectionLoadList().
uint32_t SectionLoadHistory::GetLastStopID | ( | ) | const |
Definition at line 27 of file SectionLoadHistory.cpp.
References m_mutex, and m_stop_id_to_section_load_list.
Referenced by lldb_private::Target::SetSectionLoadAddress(), lldb_private::Target::SetSectionUnloaded(), and lldb_private::Target::UnloadModuleSections().
addr_t SectionLoadHistory::GetSectionLoadAddress | ( | uint32_t | stop_id, |
const lldb::SectionSP & | section_sp | ||
) |
Definition at line 105 of file SectionLoadHistory.cpp.
References lldb_private::SectionLoadList::GetSectionLoadAddress(), GetSectionLoadListForStopID(), and m_mutex.
Referenced by lldb_private::Target::SetSectionLoadAddress().
|
protected |
Definition at line 36 of file SectionLoadHistory.cpp.
References eStopIDNow, and m_stop_id_to_section_load_list.
Referenced by GetCurrentSectionLoadList(), GetSectionLoadAddress(), ResolveLoadAddress(), SetSectionLoadAddress(), and SetSectionUnloaded().
bool SectionLoadHistory::IsEmpty | ( | ) | const |
Definition at line 17 of file SectionLoadHistory.cpp.
References m_mutex, and m_stop_id_to_section_load_list.
|
privatedelete |
bool SectionLoadHistory::ResolveLoadAddress | ( | uint32_t | stop_id, |
lldb::addr_t | load_addr, | ||
Address & | so_addr | ||
) |
Definition at line 114 of file SectionLoadHistory.cpp.
References GetSectionLoadListForStopID(), m_mutex, and lldb_private::SectionLoadList::ResolveLoadAddress().
Referenced by lldb_private::Target::ResolveLoadAddress().
bool SectionLoadHistory::SetSectionLoadAddress | ( | uint32_t | stop_id, |
const lldb::SectionSP & | section_sp, | ||
lldb::addr_t | load_addr, | ||
bool | warn_multiple = false |
||
) |
Definition at line 124 of file SectionLoadHistory.cpp.
References GetSectionLoadListForStopID(), m_mutex, and lldb_private::SectionLoadList::SetSectionLoadAddress().
Referenced by lldb_private::Target::SetSectionLoadAddress().
size_t SectionLoadHistory::SetSectionUnloaded | ( | uint32_t | stop_id, |
const lldb::SectionSP & | section_sp | ||
) |
Definition at line 136 of file SectionLoadHistory.cpp.
References GetSectionLoadListForStopID(), m_mutex, and lldb_private::SectionLoadList::SetSectionUnloaded().
bool SectionLoadHistory::SetSectionUnloaded | ( | uint32_t | stop_id, |
const lldb::SectionSP & | section_sp, | ||
lldb::addr_t | load_addr | ||
) |
Definition at line 145 of file SectionLoadHistory.cpp.
References GetSectionLoadListForStopID(), m_mutex, and lldb_private::SectionLoadList::SetSectionUnloaded().
Referenced by lldb_private::Target::SetSectionUnloaded(), and lldb_private::Target::UnloadModuleSections().
|
mutableprotected |
Definition at line 75 of file SectionLoadHistory.h.
Referenced by Clear(), Dump(), GetCurrentSectionLoadList(), GetLastStopID(), GetSectionLoadAddress(), IsEmpty(), ResolveLoadAddress(), SetSectionLoadAddress(), and SetSectionUnloaded().
|
protected |
Definition at line 74 of file SectionLoadHistory.h.
Referenced by Clear(), Dump(), GetLastStopID(), GetSectionLoadListForStopID(), and IsEmpty().