getsentry / pdb

A parser for Microsoft PDB (Program Database) debugging information
https://docs.rs/pdb/
Apache License 2.0
375 stars 67 forks source link

Add an addr2line example #40

Closed jrmuizel closed 2 years ago

jrmuizel commented 5 years ago

This probably a pretty useful thing to show how to do.

jplatte commented 4 years ago

This would be a very useful separate crate, actually. I haven't been able to find a working addr2line for windows anywhere.

jrmuizel commented 4 years ago

I posted a somewhat functional version of this in #72

luser commented 4 years ago

At some point it'd be great to support the public symbol stream since that lets you do fast lookups by address or name. I refreshed my memory and filed an issue with pointers: https://github.com/willglynn/pdb/issues/82

jrmuizel commented 4 years ago

I've expanded https://github.com/willglynn/pdb/pull/72 with some crappy code that has been somewhat usable for me here: https://github.com/jrmuizel/pdb-addr2line

Pombal commented 4 years ago

Thanks @jrmuizel, that's very useful.

What are the steps to achieve the same functionality but for every local, member, or global variable as well as functions?

mstange commented 2 years ago

@jrmuizel's prototype has now evolved into https://github.com/mstange/pdb-addr2line . You can use it with cargo install --examples pdb-addr2line .

I think this issue (and PR #72) can be closed.

jan-auer commented 2 years ago

Awesome, thanks! I think we can link to it from the Readme.