Markus Stange
Markus Stange
@jrmuizel and I have taken the code from this repo, converted it to rust, implemented lots of unhandled cases, and published it at https://github.com/mstange/msvc-demangler-rust .
The macOS 11 problem is a different one, see https://github.com/gimli-rs/object/issues/268 .
Is there a workaround for this? I think this bug is the reason why the VSCode rust extension doesn't work for me at all.
> Exposing the constants makes sense regardless. So far, we have them all exposed in enums like [`CPUType`](https://docs.rs/pdb/latest/pdb/enum.CPUType.html), which are great to match on, but not to work with as...
[`ItemFinder`](https://docs.rs/pdb/latest/pdb/struct.ItemFinder.html) currently builds such an index -> offset map itself (in the `positions` Vec). It would be great if it could use this existing table.
I think the following should get you fairly close: 1. Wait for PR #26 to land 2. Iterate over all the modules 3. Iterate over the symbols of each module...
> Also, I'm not familiar with the `pdb`, but what is the difference between `global_symbols` and symbols from `debug_information`? AFAIU, they can have the same symbols/functions, but `global_symbols` doesn't contain...
To demangle "decorated" global symbols, use [`msvc_demangler`](https://docs.rs/msvc-demangler/). To emit function arguments for procedures, use [`pdb_addr2line::TypeFormatter::format_function`](https://docs.rs/pdb-addr2line/latest/pdb_addr2line/struct.TypeFormatter.html#method.format_function). To emit namespaces and function arguments for inlines, use [`pdb_addr2line::TypeFormatter::format_id`](https://docs.rs/pdb-addr2line/latest/pdb_addr2line/struct.TypeFormatter.html#method.format_id). To get function names for...
I've also run into this problem in [pdb-addr2line](https://github.com/mstange/pdb-addr2line). I've ended up propagating the awkwardness to the consumer of my API; rather than just creating a `Context` they need to create...
I might not need this after all. I can get these start offsets from the section contributions.