PdbResolveRva
Description
Locate the function whose [rva, rva + size) range contains rva. (For the trailing function whose size is 0 we accept any rva >= function.rva.)
Success
Returns a pointer to the matching entry. Valid until PdbDeinit.
Failure
Returns NULL.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Pdb.c:301:
// Direct lookup by RVA.
if (ok) {
const PdbFunction *f = PdbResolveRva(&pdb, 0x1100);
ok = f && ZstrCompare(f->name, "my_function") == 0;
}- In
PdbCache.c:217:
u32 rva = (u32)rva64;
const PdbFunction *f = PdbResolveRva(&entry->pdb, rva);
if (!f)
return false;- In
Pdb.c:768:
}
const PdbFunction *PdbResolveRva(const Pdb *self, u32 rva) {
if (!self || self->functions.length == 0)
return NULL;
Last updated on