Skip to content

PdbFileDeinit

Description

Release storage owned by a PdbFile. Safe on a zeroed struct.

Usage example (Cross-references)

Usage examples (Cross-references)
        ok = ok && MemCompare(pdb.info.guid, kGuid, 16) == 0;
    
        PdbFileDeinit(&pdb);
        DefaultAllocatorDeinit(&alloc);
        return ok;
        }
    
        PdbFileDeinit(&pdb);
        DefaultAllocatorDeinit(&alloc);
        return ok;
            MemCompare(entry->pe.codeview.guid, entry->pdb.info.guid, 16) != 0) {
            LOG_ERROR("PdbCache: GUID/age mismatch between PE and PDB for {}", entry->module_path);
            PdbFileDeinit(&entry->pdb);
            return false;
        }
            PdbCacheEntry *e = &self->entries.data[i];
            if (e->pdb_open)
                PdbFileDeinit(&e->pdb);
            if (e->pe_open)
                PeFileDeinit(&e->pe);
    
    fail:
        PdbFileDeinit(out);
        return false;
    }
    }
    
    void PdbFileDeinit(PdbFile *self) {
        if (!self)
            return;
Last updated on