|
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 allow_section_end=false) |
| 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 |
Referenced by operator=(), and SectionLoadHistory().
|
inline |
Definition at line 29 of file SectionLoadHistory.h.
References Clear().
|
privatedelete |
References SectionLoadHistory().
| void SectionLoadHistory::Clear | ( | ) |
Definition at line 22 of file SectionLoadHistory.cpp.
References m_mutex, and m_stop_id_to_section_load_list.
Referenced by ~SectionLoadHistory().
Definition at line 157 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.
| uint32_t SectionLoadHistory::GetLastStopID | ( | ) | const |
Definition at line 27 of file SectionLoadHistory.cpp.
References m_mutex, and m_stop_id_to_section_load_list.
| 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.
|
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(), SetSectionUnloaded(), 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 |
References SectionLoadHistory().
| bool SectionLoadHistory::ResolveLoadAddress | ( | uint32_t | stop_id, |
| lldb::addr_t | load_addr, | ||
| Address & | so_addr, | ||
| bool | allow_section_end = false ) |
Definition at line 114 of file SectionLoadHistory.cpp.
References GetSectionLoadListForStopID(), m_mutex, and lldb_private::SectionLoadList::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 126 of file SectionLoadHistory.cpp.
References GetSectionLoadListForStopID(), m_mutex, and lldb_private::SectionLoadList::SetSectionLoadAddress().
| size_t SectionLoadHistory::SetSectionUnloaded | ( | uint32_t | stop_id, |
| const lldb::SectionSP & | section_sp ) |
Definition at line 138 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 147 of file SectionLoadHistory.cpp.
References GetSectionLoadListForStopID(), m_mutex, and lldb_private::SectionLoadList::SetSectionUnloaded().
|
mutableprotected |
Definition at line 75 of file SectionLoadHistory.h.
Referenced by Clear(), Dump(), GetCurrentSectionLoadList(), GetLastStopID(), GetSectionLoadAddress(), IsEmpty(), ResolveLoadAddress(), SetSectionLoadAddress(), SetSectionUnloaded(), and SetSectionUnloaded().
|
protected |
Definition at line 74 of file SectionLoadHistory.h.
Referenced by Clear(), Dump(), GetLastStopID(), GetSectionLoadListForStopID(), and IsEmpty().