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)
- In
PdbCache.c:112:
return false;
}
bool ok = PdbFileOpen(&entry->pdb, pdb_path.data, alloc);
StrDeinit(&pdb_path);
if (!ok)- In
Pdb.c:623:
}
bool PdbFileOpen(PdbFile *out, const char *path, Allocator *alloc) {
if (!out || !path || !alloc) {
LOG_ERROR("PdbFileOpen: NULL argument");- In
Pdb.c:625:
bool PdbFileOpen(PdbFile *out, const char *path, Allocator *alloc) {
if (!out || !path || !alloc) {
LOG_ERROR("PdbFileOpen: NULL argument");
return false;
}- In
Pdb.c:632:
u64 capacity = 0;
if (!ReadCompleteFile(path, &buf, &bytes, &capacity, alloc)) {
LOG_ERROR("PdbFileOpen: failed to read {}", path);
return false;
}
Last updated on