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

Fix source_file bug in mono_ppdb_lookup_location_internal #97392

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

bholmes
Copy link
Contributor

@bholmes bholmes commented Jan 23, 2024

document-records affect sequence points that follow in the byte stream, not points previously read.

When reading the document-record we may already be at the target offset. Do not update docname local if we have reached the end target already otherwise the wrong source_file will be reported for the requested offset

This is a fix from my recent PR that was reverted here

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jan 23, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jan 23, 2024
document-records affect sequence points that follow in the byte stream,
not points previously read.

When reading the document-record we may already be at the target offset.
Do not update docname local if we have reached the end target already
otherwise the wrong source_file will be reported for the requested offset
@bholmes bholmes force-pushed the unity-fix/issue-uum-4341-2 branch from 912c48f to 8d49615 Compare January 23, 2024 14:42
@bholmes bholmes marked this pull request as ready for review January 24, 2024 14:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community-contribution Indicates that the PR has been added by a community member needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants