LLVM-PDBUTIL(1)

πŸ’… llvm-pdbutil(1) β€” LLVM manual page, group-chat edition πŸ’…

Okay bestie, this is the llvm-pdbutil page from the LLVM manual. It’s all about PDB file forensics and diagnostics, and we’re gonna go through every single flag like the responsible Unix bestie we are. 🫢

What’s inside (the map):

  • Synopsis
  • Description
  • Subcommands
    • pretty
      • Summary
      • Options
        • Filtering and Sorting Options
        • Symbol Type Options
        • Other Options
    • dump
      • Summary
      • Options
        • MSF Container Options
        • Module & File Options
        • Symbol Options
        • Type Record Options
        • Miscellaneous Options
    • bytes
      • Summary
      • Options
        • MSF File Options
        • PDB Stream Options
        • DBI Stream Options
        • Module Options
        • Type Record Options
    • pdb2yaml
      • Summary
      • Options
    • yaml2pdb
      • Summary
      • Options
    • merge
      • Summary
      • Options

✨ NAME ✨

llvm-pdbutil β€” PDB File forensics and diagnostics.

πŸ¦‹ SYNOPSIS πŸ¦‹

llvm-pdbutil [subcommand] [options]

πŸ’– DESCRIPTION πŸ’–

Display types, symbols, CodeView records, and other information from a PDB file, as well as manipulate and create PDB files. llvm-pdbutil is normally used by FileCheck-based tests to test LLVM's PDB reading and writing functionality, but can also be used for general PDB file investigation and forensics, or as a replacement for cvdump.

πŸŽ€ SUBCOMMANDS πŸŽ€

llvm-pdbutil is separated into several subcommands each tailored to a different purpose. A brief summary of each command follows, with more detail in the sections that follow.

  • pretty β€” Dump symbol and type information in a format that tries to look as much like the original source code as possible.
  • dump β€” Dump low level types and structures from the PDB file, including CodeView records, hash tables, PDB streams, etc.
  • bytes β€” Dump data from the PDB file's streams, records, types, symbols, etc as raw bytes.
  • yaml2pdb β€” Given a yaml description of a PDB file, produce a valid PDB file that matches that description.
  • pdb2yaml β€” For a given PDB file, produce a YAML description of some or all of the file in a way that the PDB can be reconstructed.
  • merge β€” Given two PDBs, produce a third PDB that is the result of merging the two input PDBs.

🌸 pretty 🌸

Important: the pretty subcommand is built on the Windows DIA SDK, and as such is not supported on non-Windows platforms.
USAGE: llvm-pdbutil pretty [options] <input PDB file>

✨ Summary ✨

The pretty subcommand displays a very high level representation of your program's debug info. Since it is built on the Windows DIA SDK which is the standard API that Windows tools and debuggers query debug information, it presents a more authoritative view of how a debugger is going to interpret your debug information than a mode which displays low-level CodeView records.

πŸ’… Options πŸ’…

πŸŽ€ Filtering and Sorting Options πŸŽ€

Note: exclude filters take priority over include filters. So if a filter matches both an include and an exclude rule, then it is excluded.
  • -exclude-compilands=<string> β€” When dumping compilands, compiland source-file contributions, or per-compiland symbols, this option instructs llvm-pdbutil to omit any compilands that match the specified regular expression.
  • -exclude-symbols=<string> β€” When dumping global, public, or per-compiland symbols, this option instructs llvm-pdbutil to omit any symbols that match the specified regular expression.
  • -exclude-types=<string> β€” When dumping types, this option instructs llvm-pdbutil to omit any types that match the specified regular expression.
  • -include-compilands=<string> β€” When dumping compilands, compiland source-file contributions, or per-compiland symbols, limit the initial search to only those compilands that match the specified regular expression.
  • -include-symbols=<string> β€” When dumping global, public, or per-compiland symbols, limit the initial search to only those symbols that match the specified regular expression.
  • -include-types=<string> β€” When dumping types, limit the initial search to only those types that match the specified regular expression.
  • -min-class-padding=<uint> β€” Only display types that have at least the specified amount of alignment padding, accounting for padding in base classes and aggregate field members.
  • -min-class-padding-imm=<uint> β€” Only display types that have at least the specified amount of alignment padding, ignoring padding in base classes and aggregate field members.
  • -min-type-size=<uint> β€” Only display types T where sizeof(T) is greater than or equal to the specified amount.
  • -no-compiler-generated β€” Don't show compiler generated types and symbols.
  • -no-enum-definitions β€” When dumping an enum, don't show the full enum (e.g. the individual enumerator values).
  • -no-system-libs β€” Don't show symbols from system libraries.

Symbol Type Options

  • -all β€” Implies all other options in this category.
  • -class-definitions=<format> β€” Displays class definitions in the specified format.
    • =all β€” Display all class members including data, constants, typedefs, functions, etc (default)
    • =layout β€” Only display members that contribute to class size.
    • =none β€” Don't display class definitions (e.g. only display the name and base list)
  • -class-order β€” Displays classes in the specified order.
    • =none β€” Undefined / no particular sort order (default)
    • =name β€” Sort classes by name
    • =size β€” Sort classes by size
    • =padding β€” Sort classes by amount of padding
    • =padding-pct β€” Sort classes by percentage of space consumed by padding
    • =padding-imm β€” Sort classes by amount of immediate padding
    • =padding-pct-imm β€” Sort classes by percentage of space consumed by immediate padding
  • -class-recurse-depth=<uint> β€” When dumping class definitions, stop after recursing the specified number of times. The default is 0, which is no limit.
  • -classes β€” Display classes.
  • -compilands β€” Display compilands (e.g. object files).
  • -enums β€” Display enums.
  • -externals β€” Dump external (e.g. exported) symbols.
  • -globals β€” Dump global symbols.
  • -lines β€” Dump the mappings between source lines and code addresses.
  • -module-syms β€” Display symbols (variables, functions, etc) for each compiland.
  • -sym-types=<types> β€” Type of symbols to dump when -globals, -externals, or -module-syms is specified. (default all)
    • =thunks β€” Display thunk symbols
    • =data β€” Display data symbols
    • =funcs β€” Display function symbols
    • =all β€” Display all symbols (default)
  • -symbol-order=<order> β€” For symbols dumped via the -module-syms, -globals, or -externals options, sort the results in specified order.
    • =none β€” Undefined / no particular sort order
    • =name β€” Sort symbols by name
    • =size β€” Sort symbols by size
  • -typedefs β€” Display typedef types.
  • -types β€” Display all types (implies -classes, -enums, -typedefs).

Other Options

  • -color-output β€” Force color output on or off. By default, color is used if outputting to a terminal.
  • -load-address=<uint> β€” When displaying relative virtual addresses, assume the process is loaded at the given address and display what would be the absolute address.

πŸ’€ dump πŸ’€

USAGE: llvm-pdbutil dump [options] <input PDB file>

✨ Summary ✨

The dump subcommand displays low level information about the structure of a PDB file. It is used heavily by LLVM's testing infrastructure, but can also be used for PDB forensics. It serves a role similar to that of Microsoft's cvdump tool.

Note: the dump subcommand exposes internal details of the file format. As such, the reader should be familiar with The PDB File Format <> before using this command.

πŸ’… Options πŸ’…

πŸ“¦ MSF Container Options πŸ“¦

  • -streams β€” dump a summary of all of the streams in the PDB file.
  • -stream-blocks β€” In conjunction with -streams, add information to the output about what blocks the specified stream occupies.
  • -summary β€” Dump MSF and PDB header information.

πŸ“ Module & File Options πŸ“

  • -modi=<uint> β€” For all options that dump information from each module/compiland, limit to the specified module.
  • -files β€” Dump the source files that contribute to each displayed module.
  • -il β€” Dump inlinee line information (DEBUG_S_INLINEELINES CodeView subsection).
  • -l β€” Dump line information (DEBUG_S_LINES CodeView subsection).
  • -modules β€” Dump compiland information.
  • -xme β€” Dump cross module exports (DEBUG_S_CROSSSCOPEEXPORTS CodeView subsection).
  • -xmi β€” Dump cross module imports (DEBUG_S_CROSSSCOPEIMPORTS CodeView subsection).

πŸ”£ Symbol Options πŸ”£

  • -globals β€” dump global symbol records.
  • -global-extras β€” dump additional information about the globals, such as hash buckets and hash values.
  • -publics β€” dump public symbol records.
  • -public-extras β€” dump additional information about the publics, such as hash buckets and hash values.
  • -symbols β€” dump symbols (functions, variables, etc) for each module dumped.
  • -sym-data β€” For each symbol record dumped as a result of the -symbols option, display the full bytes of the record in binary as well.

🧬 Type Record Options 🧬

  • -types β€” Dump CodeView type records from TPI stream.
  • -type-extras β€” Dump additional information from the TPI stream, such as hashes and the type index offsets array.
  • -type-data β€” For each type record dumped, display the full bytes of the record in binary as well.
  • -type-index=<uint> β€” Only dump types with the specified type index.
  • -ids β€” Dump CodeView type records from IPI stream.
  • -id-extras β€” Dump additional information from the IPI stream, such as hashes and the type index offsets array.
  • -id-data β€” For each ID record dumped, display the full bytes of the record in binary as well.
  • -id-index=<uint> β€” only dump ID records with the specified hexadecimal type index.
  • -dependents β€” When you use this with -type-index or -id-index, it doesn’t just dump the one record at that index β€” it dumps the entire dependency graph for that index instead. Like, if type index 0x4000 is a function whose return type has index 0x3000, and you specify -dependents=0x4000, then this dumps both records, plus any other dependents in the tree. It’s giving β€œbring the whole group chat” energy πŸ‘―β€β™€οΈπŸ’….

πŸŽ€ Miscellaneous Options πŸŽ€

  • -all β€” Implies most other options. Basically the β€œselect all” of this menu, lowkey πŸ‘‘.
  • -section-contribs β€” Dump section contributions. Very demure, very forensic 🧚.
  • -section-headers β€” Dump image section headers. Header stans rise ✨.
  • -section-map β€” Dump section map. It’s a map, bestie πŸ—ΊοΈ.
  • -string-table β€” Dump PDB string table. Strings but make it PDB πŸŽ€.

πŸ“ bytes πŸ“

USAGE: llvm-pdbutil bytes [options] <input PDB file>

✨ Summary ✨

Like the dump subcommand, the bytes subcommand displays low-level information about the structure of a PDB file, but it’s used for even deeper forensics πŸ”. The bytes subcommand finds various structures in a PDB file based on the command-line options you specify, and dumps them in hex. Someone working on support for emitting PDBs would use this heavily β€” for example, to compare one PDB against another PDB and make sure they’re byte-for-byte compatible. And no, it’s not enough to simply compare the bytes of an entire file or an entire stream, because it’s perfectly fine for the same structure to exist at different locations in two different PDBs, and β€œfinding” the structure is half the battle 😀πŸ’ͺ.

πŸ› οΈ Options πŸ› οΈ

MSF File Options

  • -block-range=<start[-end]> β€” Dump binary data from the specified range of MSF file blocks.
  • -byte-range=<start[-end]> β€” Dump binary data from the specified range of bytes in the file.
  • -fpm β€” Dump the MSF free page map.
  • -stream-data=<string> β€” Dump binary data from the specified streams. The format is SN[:Start][@Size]. For example, -stream-data=7:3@12 dumps 12 bytes from stream 7, starting at offset 3 in the stream. So precise, so iconic 🎯.

PDB Stream Options

  • -name-map β€” Dump bytes of PDB Name Map.

DBI Stream Options

  • -ec β€” Dump the edit and continue map substream of the DBI stream.
  • -files β€” Dump the file info substream of the DBI stream.
  • -modi β€” Dump the modi substream of the DBI stream.
  • -sc β€” Dump section contributions substream of the DBI stream.
  • -sm β€” Dump the section map from the DBI stream.
  • -type-server β€” Dump the type server map from the DBI stream.

Module Options

  • -mod=<uint> β€” Limit all options in this category to the specified module index. By default, options in this category dump bytes from all modules.
  • -chunks β€” Dump the bytes of each module’s C13 debug subsection.
  • -split-chunks β€” When specified with -chunks, split the C13 debug subsection into a separate chunk for each subsection type, and dump them separately. Organized queen behavior 🧚✨.
  • -syms β€” Dump the symbol record substream from each module.

Type Record Options

  • -id=<uint> β€” Dump the record from the IPI stream with the given type index.
  • -type=<uint> β€” Dump the record from the TPI stream with the given type index.

πŸŽ€ pdb2yaml πŸŽ€

USAGE: llvm-pdbutil pdb2yaml [options] <input PDB file>

✨ Summary ✨

The original page leaves this section blank β€” just the heading, no cap 😭.

πŸ› οΈ Options πŸ› οΈ

No options listed here either. It’s literally just the heading and vibes πŸ« πŸ’€.


πŸ¦‹ yaml2pdb πŸ¦‹

USAGE: llvm-pdbutil yaml2pdb [options] <input YAML file>

✨ Summary ✨

Generate a PDB file from a YAML description. The YAML syntax is not described here β€” instead, use llvm-pdbutil pdb2yaml and examine the output for an example starting point. Very β€œread the room, then read the YAML” energy πŸ“–βœ¨.

πŸ› οΈ Options πŸ› οΈ

  • -pdb=<file-name> β€” Write the resulting PDB to the specified file.

🌈 merge 🌈

USAGE: llvm-pdbutil merge [options] <input PDB file 1> <input PDB file
2>

✨ Summary ✨

Merge two PDB files into a single file. Two files enter, one file leaves πŸ‘‘πŸ”₯.

πŸ› οΈ Options πŸ› οΈ

  • -pdb=<file-name> β€” Write the resulting PDB to the specified file.

πŸ’– Author πŸ’–

Maintained by the LLVM Team (https://llvm.org/).

2003-2026, LLVM Project


And that’s the whole page, bestie πŸ’– This cutie is LLVM-PDBUTIL(1), dated 2026-10-20, page 23 β€” go forth and dump some PDBs responsibly βœ¨πŸ‘‘πŸ«Ά

πŸ“¦ where this page comes from
  • arch rolling: llvm 23.1.4-1 Β· Apache-2.0 WITH LLVM-exception
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms