PdbOpen
Description
Open and parse a PDB from disk.
Success
Returns true; parser owns the read-in buffer.
Failure
Returns false; logs the failing step. out is left zeroed.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
PdbCache.c:112:
return false;
}
bool ok = PdbOpen(&entry->pdb, pdb_path.data, alloc);
StrDeinit(&pdb_path);
if (!ok)- In
Pdb.c:739:
bool pdb_open(Pdb *out, Zstr path, Allocator *alloc) {
if (!out || !path || !alloc) {
LOG_FATAL("PdbOpen: NULL argument (contract violation)");
}
Buf data = BufInit(alloc);- In
Pdb.c:744:
if (FileReadAndClose(path, &data) < 0) {
BufDeinit(&data);
LOG_ERROR("PdbOpen: failed to read {}", path);
return false;
}
Last updated on