Comments (3)
Can you use pdb-addr2line instead? It does all of this for you. It also only loads the modules that are needed for the looked-up rvas, and it has multiple layers of caching.
from pdb.
I think your list mostly looks good, except for the last item: Not every instruction has a matching line entry with the instruction's offset; some line entries cover multiple instructions. So you need to get the "closest" line entry (line.offset <= probe_offset). And the line entries need to be sorted by offset first.
Furthermore, you may want to handle inlined function calls. If the address is inside a function A that was inlined into a function B, do you want the line number in A or the line number in B where A was called? Your list will give you the latter.
from pdb.
I was not aware of this crate, I will give it a try, thanks. I will close this on the assumption that this crate implements the best method for this.
from pdb.
Related Issues (20)
- Question regarding `FieldAttributes::is_intro_virtual` HOT 2
- Integer truncation following `parse_unsigned` in src/tpi/data.rs HOT 3
- Expose LineProgram line subsections HOT 2
- Expose symbol kind constants such as S_PUB32 HOT 3
- ImageSectionHeader virtual_size is wrongly named physical_address HOT 1
- Add support for FastLink symbols (S_REF_MINIPDB2 / S_FASTLINK)
- Add support for Trampoline symbols (S_TRAMPOLINE)
- Section offsets are 1-indexed HOT 4
- C++ 20's char8_t isn't supported
- Add support for Alias (typedef) Types
- Unsupported type
- PdbInternalSectionOffset should derive Ord
- Take advantage of the type index offset data HOT 3
- Expose the type stream hash table in some way
- Stream type is not exposed, public method named_stream returns private type
- Support for .NET PDBs HOT 2
- Add support for LF_TAGGED_UNION, LF_TUCASE
- Add support for small MSF file format HOT 5
- NGEN-generated PDB support HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdb.