{"id":13994643,"url":"https://github.com/getsentry/pdb","last_synced_at":"2025-12-12T16:40:47.964Z","repository":{"id":16085126,"uuid":"79258936","full_name":"getsentry/pdb","owner":"getsentry","description":"A parser for Microsoft PDB (Program Database) debugging information","archived":false,"fork":false,"pushed_at":"2024-12-04T18:43:26.000Z","size":1575,"stargazers_count":413,"open_issues_count":41,"forks_count":73,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-04-29T06:42:29.657Z","etag":null,"topics":["debugging","microsoft-pdb","pdb","rust-library","tag-production"],"latest_commit_sha":null,"homepage":"https://docs.rs/pdb/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getsentry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://sentry.io/pricing/","https://sentry.io/"]}},"created_at":"2017-01-17T18:38:34.000Z","updated_at":"2025-04-28T14:29:05.000Z","dependencies_parsed_at":"2024-01-18T05:13:03.072Z","dependency_job_id":"f63e6b1b-9307-4a9f-a1d1-36d5d7d4ef15","html_url":"https://github.com/getsentry/pdb","commit_stats":{"total_commits":263,"total_committers":23,"mean_commits":"11.434782608695652","dds":0.55893536121673,"last_synced_commit":"b052964e09d03eb190c8a60dc76344150ff8a9df"},"previous_names":["getsentry/pdb","willglynn/pdb"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fpdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fpdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fpdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fpdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsentry","download_url":"https://codeload.github.com/getsentry/pdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464895,"owners_count":22075570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging","microsoft-pdb","pdb","rust-library","tag-production"],"created_at":"2024-08-09T14:03:00.755Z","updated_at":"2025-12-12T16:40:47.882Z","avatar_url":"https://github.com/getsentry.png","language":"Rust","readme":"`pdb`\n===\n\n[![](https://img.shields.io/crates/v/pdb.svg)](https://crates.io/crates/pdb) [![](https://docs.rs/pdb/badge.svg)](https://docs.rs/pdb/) ![Build Status](https://github.com/willglynn/pdb/actions/workflows/ci.yml/badge.svg)\n\nThis is a Rust library that parses Microsoft PDB (Program Database) files.\nThese files contain debugging information produced by most compilers that\ntarget Windows, including information about symbols, types, modules, and so on.\n\nThe PDB format is not documented per sé, but Microsoft has [published\ninformation](https://github.com/Microsoft/microsoft-pdb) in the form of C++\ncode relating to its use. The PDB format is full of... history, including\nsupport for debugging 16-bit executables, COBOL user-defined types, and myriad\nother features. `pdb` does not understand everything about the PDB format,\nbut it does cover enough to be useful for typical programs compiled today.\n\n[Documentation on docs.rs](https://docs.rs/pdb/).\n\nDesign\n---\n\n`pdb`'s design objectives are similar to\n[`gimli`](https://github.com/gimli-rs/gimli):\n\n* `pdb` works with the original data as it's formatted on-disk as long as\n  possible.\n\n* `pdb` parses only what you ask.\n\n* `pdb` can read PDBs anywhere. There's no dependency on Windows, on the\n  [DIA SDK](https://msdn.microsoft.com/en-us/library/x93ctkx8.aspx), or on\n  the target's native byte ordering.\n\nUsage Example\n---\n\n```rust\nuse pdb::FallibleIterator;\nuse std::fs::File;\n\nfn main() -\u003e pdb::Result\u003c()\u003e {\n    let file = File::open(\"fixtures/self/foo.pdb\")?;\n    let mut pdb = pdb::PDB::open(file)?;\n\n    let symbol_table = pdb.global_symbols()?;\n    let address_map = pdb.address_map()?;\n\n    let mut symbols = symbol_table.iter();\n    while let Some(symbol) = symbols.next()? {\n        match symbol.parse() {\n            Ok(pdb::SymbolData::Public(data)) if data.function =\u003e {\n                // we found the location of a function!\n                let rva = data.offset.to_rva(\u0026address_map).unwrap_or_default\n                println!(\"{} is {}\", rva, data.name);\n            }\n            _ =\u003e {}\n        }\n    }\n\n    Ok(())\n}\n```\n\nExample Programs\n---\n\nRun with `cargo run --release --example \u003cname\u003e`:\n\n* [`pdb_symbols`](examples/pdb_symbols.rs) is a toy program that prints the name and location of every function and\n  data value defined in the symbol table.\n\n* [`pdb2hpp`](examples/pdb2hpp.rs) is a somewhat larger program that prints an approximation of a C++ header file for\n  a requested type given only a PDB.\n\n* [`pdb_lines`](examples/pdb_lines.rs) outputs line number information for every symbol in every module contained in\n  a PDB.\n\nReal-world examples:\n\n* [`mstange/pdb-addr2line`](https://github.com/mstange/pdb-addr2line) resolves addresses to function names, and to file name and line number information, with the help of a PDB file. Inline stacks are supported.\n\n* [`getsentry/symbolic`](https://github.com/getsentry/symbolic) is a high-level symbolication library supporting most common debug file formats, demangling, and more.\n\nLicense\n---\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\nContribution\n---\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","funding_links":["https://sentry.io/pricing/","https://sentry.io/"],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fpdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetsentry%2Fpdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fpdb/lists"}