18 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
23 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
28 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
47 StopIDToSectionLoadList::reverse_iterator rpos =
49 return rpos->second.get();
51 StopIDToSectionLoadList::iterator pos =
54 pos->first == stop_id)
55 return pos->second.get();
58 return pos->second.get();
69 StopIDToSectionLoadList::iterator pos =
72 pos->first == stop_id) {
74 return pos->second.get();
80 StopIDToSectionLoadList::reverse_iterator rpos =
85 return section_load_list_sp.get();
92 return section_load_list_sp.get();
96 const bool read_only =
true;
97 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
100 assert(section_load_list !=
nullptr);
101 return *section_load_list;
107 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
108 const bool read_only =
true;
117 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
118 const bool read_only =
true;
126 bool warn_multiple) {
127 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
128 const bool read_only =
false;
138 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
139 const bool read_only =
false;
148 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
149 const bool read_only =
false;
156 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
157 StopIDToSectionLoadList::iterator pos,
160 s.
Printf(
"StopID = %u:\n", pos->first);
161 pos->second->Dump(s, target);
A section + offset based address class.
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)
std::recursive_mutex m_mutex
lldb::addr_t GetSectionLoadAddress(uint32_t stop_id, const lldb::SectionSP §ion_sp)
void Dump(Stream &s, Target *target)
StopIDToSectionLoadList m_stop_id_to_section_load_list
bool SetSectionUnloaded(uint32_t stop_id, const lldb::SectionSP §ion_sp, lldb::addr_t load_addr)
uint32_t GetLastStopID() const
SectionLoadList & GetCurrentSectionLoadList()
SectionLoadList * GetSectionLoadListForStopID(uint32_t stop_id, bool read_only)
bool SetSectionUnloaded(const lldb::SectionSP §ion_sp, lldb::addr_t load_addr)
bool ResolveLoadAddress(lldb::addr_t load_addr, Address &so_addr, bool allow_section_end=false) const
bool SetSectionLoadAddress(const lldb::SectionSP §ion_sp, lldb::addr_t load_addr, bool warn_multiple=false)
lldb::addr_t GetSectionLoadAddress(const lldb::SectionSP §ion_sp) const
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t EOL()
Output and End of Line character to the stream.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::SectionLoadList > SectionLoadListSP
std::shared_ptr< lldb_private::Section > SectionSP