Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

address_map return with Err AddressMapNotFound #50

Closed
wyxloading opened this issue Aug 18, 2019 · 2 comments
Closed

address_map return with Err AddressMapNotFound #50

wyxloading opened this issue Aug 18, 2019 · 2 comments

Comments

@wyxloading
Copy link

I am encounter some pdb with no omap info ( also none DBIExtraStreams.section_headers ).
When i call pdb.address_map() and Err(AddressMapNotFound) returned.
I wonder if this behavior is expected?
I am trying to dump the symbol tables, using the address_map to translate (metioned in #17 )
What should i do with pdbs without extra streams or omap infos?

Here is the sample pdb i download from microsoft symbol server.
mscorlib.ni.pdb.zip

@willglynn
Copy link
Collaborator

Without section headers, the PDB can't translate {section, offsets} to/from RVAs. There's simply no data for a pdb::AddressMap to use.

You could perform such translation yourself using the section headers in the corresponding executable, but pdb doesn't touch executables, so that's out of scope here.

@wyxloading
Copy link
Author

thanks for the quick response, i got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants