Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Use PEImage API get export symbols for single file apps #2674
Use PEImage API get export symbols for single file apps #2674
Changes from 3 commits
eb10d97
b3895b0
8b34873
9ed1a90
53ec355
499a7c3
4cd5e9d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't
_debuggerServices
in this case WinDBG? Is this the slow path for the export case?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I see you're making this the classic symbol lookup path, and not the module export symbol one. Makes sense that you need the explicit interface implementation. Do you know which one will it bind to if I call it on the object, and not the interface? Or will it just not bind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code really didn't change for the IModuleSymbols interface (IExportSymbols interface is now implemented by the base Module class with the TryGetSymbolAddressInner helper). Both interfaces should be accessible via the IModule.Services provider and shouldn't be accessed through casting IModule to IModuleSymbols.
I'm not sure I understand your last question about binding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IExportSymbols
(through the base classModule
) andIModuleSymbols
in this class here both defineTryGetSymbolName
. I was wondering what happens if in the scope of a member of the class you try to call the method, what happens. If I have something that implements an interface, it's not obvious you need to call the provider. This is not blocking this though.