Skip to content
PdbCacheDeinit

PdbCacheDeinit

Description

Tear down the cache, releasing every cached PeFile and PdbFile. Safe on a zeroed struct.

Usage example (Cross-references)

Usage examples (Cross-references)
        ok            = ok && name && ZstrCompare(name, "winproc") == 0 && offset == 0x10;
    
        PdbCacheDeinit(&cache);
        DefaultAllocatorDeinit(&alloc);
        const char *name = NULL;
        bool        ok   = !PdbCacheResolve(&cache, missing, 0, 0x1000, &name, NULL);
        PdbCacheDeinit(&cache);
        DefaultAllocatorDeinit(&alloc);
        return ok;
    }
    
    void PdbCacheDeinit(PdbCache *self) {
        if (!self)
            return;
    #    if MISRA_HAVE_PARSER_PDB
        if (pdb_cache_ok)
            PdbCacheDeinit(&pdb_cache);
    #    endif
    }
Last updated on