Skip to content

PdbFileOpen

Description

Open and parse a PDB from disk.

Success

Returns true; out->owns_data is true.

Failure

Returns false; logs the failing step (open / magic / directory-parse / etc). out is left zeroed.

Usage example (Cross-references)

Usage examples (Cross-references)
            return false;
        }
        bool ok = PdbFileOpen(&entry->pdb, pdb_path.data, alloc);
        StrDeinit(&pdb_path);
        if (!ok)
    }
    
    bool PdbFileOpen(PdbFile *out, const char *path, Allocator *alloc) {
        if (!out || !path || !alloc) {
            LOG_ERROR("PdbFileOpen: NULL argument");
    bool PdbFileOpen(PdbFile *out, const char *path, Allocator *alloc) {
        if (!out || !path || !alloc) {
            LOG_ERROR("PdbFileOpen: NULL argument");
            return false;
        }
        u64   capacity = 0;
        if (!ReadCompleteFile(path, &buf, &bytes, &capacity, alloc)) {
            LOG_ERROR("PdbFileOpen: failed to read {}", path);
            return false;
        }
Last updated on