| 143 | } |
| 144 | |
| 145 | static __forceinline PRUNTIME_FUNCTION cachedLookupOnly(ULONG64 pc, const CachedModule *&lastModule, |
| 146 | ULONG64 &imageBase, int &pdataHint) { |
| 147 | const CachedModule *prev = lastModule; |
| 148 | if (findModule(pc, lastModule, imageBase)) { |
| 149 | if (lastModule != prev) pdataHint = (int)(lastModule->pdataLast) >> 1; |
| 150 | return findFunctionEntry(lastModule, (DWORD)(pc - imageBase), pdataHint); |
| 151 | } |
| 152 | return nullptr; |
| 153 | } |
| 154 | |
| 155 | // SEH-wrapped PE parse: reads from dllBase may fault on unmapped pages during |
| 156 | // module teardown. Returns true if newMod was populated. Kept free of C++ |
no test coverage detected