| 2186 | } |
| 2187 | |
| 2188 | RPLModule* RPLLoader_FindModuleByCodeAddr(uint32 addr) |
| 2189 | { |
| 2190 | for (sint32 i = 0; i < rplModuleCount; i++) |
| 2191 | { |
| 2192 | uint32 startAddr = rplModuleList[i]->regionMappingBase_text.GetMPTR(); |
| 2193 | uint32 endAddr = rplModuleList[i]->regionMappingBase_text.GetMPTR() + rplModuleList[i]->regionSize_text; |
| 2194 | if (addr >= startAddr && addr < endAddr) |
| 2195 | return rplModuleList[i]; |
| 2196 | } |
| 2197 | return nullptr; |
| 2198 | } |
| 2199 | |
| 2200 | RPLModule* RPLLoader_FindModuleByDataAddr(uint32 addr) |
| 2201 | { |
no test coverage detected