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

[cdac] Change Module data descriptor for lookup maps #106291

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

lambdageek
Copy link
Member

@lambdageek lambdageek commented Aug 12, 2024

  1. Add the MethodDefToILCodeVersioningState lookup map, too.

  2. In future work (for example the SOS GetMethodDescData method) we will need to perform lookups in some of these lookup maps, so we will want the offsets of their Count and Next fields, not just a pointer to the table data. Change the data descriptor to return the offsets of the LookupMap structs themselves, not their pTable member

  3. Update SOSDacImpl.GetModuleData implementation to manually add the table data offset to the lookup map addresses that are used by that method.

Add the MethodDefToILCodeVersioningState lookup map, too.

In future work (for example the SOS GetMethodDescData method) we will need to perform lookups in some of these lookup maps, so we will want the offsets of their Count and Next fields, not just a pointer to the table data.

Update SOSDacImpl.GetModuleData implementation to manually add the table data offset to the values that are used by that method.
Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

@lambdageek lambdageek requested a review from elinor-fung August 12, 2024 19:17
lambdageek and others added 2 commits August 12, 2024 15:31
Co-authored-by: Elinor Fung <elfung@microsoft.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants