这是一个跨平台工具,可用于浏览和提取 PDB 文件中的 C 和 C++ 类型声明。
resym is a utility that allows browsing and extracting types from PDB files.
Inspired by PDBRipper and pdbex.
If you have Rust installed, you can easily install resym with cargo:
cargo install --git https://github.com/ergrelet/resym --tag v0.4.0After that, you can invoke resym and resymc from anywhere, through the
command-line.
Keep in mind that you need to have the required dependencies installed for
resym to run properly. Check out the user documentation for more details.
If you want to use the GUI version, simply run the resym executable.
A CLI version (named resymc) is also available:
…On Ubuntu, you might need to install: libxcb-shape0-dev,
libxcb-xfixes0-dev and libglib2.0-dev.
git clone https://github.com/ergrelet/resym.git && cd resym
cargo build --release
./target/release/resymThe GUI version might struggle to display huge outputs (>20 MB). Disabling syntax highlighting (and/or dependency reconstruction altogether) will help but, generally speaking, the CLI version is more suited when dumping types with a huge amount of dependencies.
C++ namespaces and template types aren't reconstructed at the moment, which means the reconstructed output for C++ types isn't necessarily compilable.
The web version cannot handle PDB files larger than ~2.1 GB due to how files
are accessed and the 32-bit limitations of wasm32 targets. This might change
in the future with wasm64/memory64 support.
I often need to extract and analyze C++ types from 1GB+ PDB files comfortably,
in an interactive manner, but I haven't been able to find a tool that ticks all
the boxes for me so far, so this my shot at making that tool.
So if you're in the same boat, this tool might be of some use to you.
暂无开放 Issues,或尚未同步最近议题。