zero match store dbgi/idx selection info if params hash has changed; we can still return the section kind (e.g. for syntax highlighting), but we no longer want to try to refer to any specific debug info slot, since it may have been evicted.

This commit is contained in:
Ryan Fleury
2025-06-27 12:36:27 -07:00
parent 5750c17c80
commit 09a047feee
+5
View File
@@ -1757,6 +1757,11 @@ di_match_from_name(DI_MatchStore *store, String8 name, U64 endt_us)
// rjf: return node present info
result = node->primary_match;
if(node->cmp_params_hash != store->params_hash)
{
result.dbgi_idx = 0;
result.idx = 0;
}
}
return result;
}