encyclopegia.org

Program database

Program database (PDB) is a file format (developed by Microsoft) for storing debugging information about a program (or, commonly, program modules such as a DLL or EXE). PDB files commonly have a .pdb extension. A PDB file is typically created from source files during compilation. It stores a list of all symbols in a module with their addresses and possibly the name of the file and the line on which the symbol was declared. This symbol information is not stored in the module itself, because it takes up a lot of space.

Program database (PDB) is a file format (developed by Microsoft) for storing debugging information about a program (or, commonly, program modules such as a DLL or EXE). PDB files commonly have a .pdb extension. A PDB file is typically created from source files during compilation. It stores a list of all symbols in a module with their addresses and possibly the name of the file and the line on which the symbol was declared. This symbol information is not stored in the module itself, because it takes up a lot of space. Type records, variable length, count = (maximum - minimum) from above header. stream 3 is a directory for other streams. Note, it is not present in Version 2, nor in a PDB produced by a compiler. The stream starts with a header which is padded to be 64 bytes in total Module information, variable length. Total size in above header. There is one of these for each object module used by the linker Opened, 4 bytes. Symbol info. Section number, 2 bytes + 2 bytes padding. Offset and size, 4 bytes each. Flags, 4 bytes. Module number, 2 bytes + 2 bytes padding. CRCs for section data and relocations data, 4 bytes each. Flags, 2 bytes. Stream number, 2 bytes. Symbols size, 4 bytes. Old and new line number info sizes, 4 bytes each. Number of source files, 2 bytes + 2 bytes padding. Offsets, 4 bytes. niSource and niCompiler, 4 bytes each. Module name, null terminated byte string. Object name, null terminated byte string. Padding to multiple of 4 bytes. Section contributions, section headers, file info, ts map, and EC info. Their sizes are found in the above header. Debug header, Stream numbers for Old Frame Pointer Omission, Exceptions, Fixups, Object Maps to and from Source, Section Headers, Token Ring IDs, Xdata, Pdata, New Frame Pointer Omission, and Section Header Origin. 2 bytes each. ==References== Microsoft documentation on DIA at Microsoft Learn Symbols and Symbol Files - Windows drivers at Microsoft Learn What's inside a PDB File? at C++ Team Blog, Microsoft Developer Blogs PDB structure according to LLVM

References

No reference rows published for this article.

Cite this article

MLA

"Program database." encyclopegia.org, 2026, https://encyclopegia.org/wiki/program-database. Accessed 23 November 2026.

Chicago

"Program database." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/program-database.

APA

encyclopegia.org. (2026). Program database. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/program-database

Accessed November 23, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

The New Left: The Anti-Industrial Revolution

enwiki · references available

Dead Silence

enwiki · references available

7W

enwiki · references available

Marcus Porcius Cato Salonianus

enwiki · references available

Philosophy: Who Needs It

enwiki · references available

LBC (disambiguation)

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1375395460 · 0.5 · snapshot enwiki-001375395460

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.