Skip to content

Commit

Permalink
Revert "Fix source_file bug in mono_ppdb_lookup_location_internal" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
thaystg committed Jan 23, 2024
1 parent 3f7ffb5 commit 3ae99a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mono/mono/metadata/debug-mono-ppdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,7 @@ mono_ppdb_lookup_location_internal (MonoImage *image, int idx, uint32_t offset,
start_col = 0;
while (ptr < end) {
guint32 delta_il = mono_metadata_decode_value (ptr, &ptr);
// check the current iloffset to ensure that we do not update docname after the target
// offset has been reached (the updated docname will be for the next sequence point)
if (!first && delta_il == 0 && iloffset < offset) {
if (!first && delta_il == 0) {
/* document-record */
docidx = mono_metadata_decode_value (ptr, &ptr);
docname = get_docname (ppdb, image, docidx);
Expand Down

0 comments on commit 3ae99a7

Please sign in to comment.