| 180 | } |
| 181 | |
| 182 | void Refresh() |
| 183 | { |
| 184 | m_updated = false; |
| 185 | dl_iterate_phdr( Callback, this ); |
| 186 | |
| 187 | if( m_updated ) |
| 188 | { |
| 189 | std::sort( m_images.begin(), m_images.end(), |
| 190 | []( const ImageEntry& lhs, const ImageEntry& rhs ) { return lhs.m_startAddress > rhs.m_startAddress; } ); |
| 191 | |
| 192 | // patch the main executable image name here, as calling dl_* functions inside the dl_iterate_phdr callback might cause deadlocks |
| 193 | UpdateMainImageName(); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | void UpdateMainImageName() |
| 198 | { |
nothing calls this directly
no test coverage detected