diff --git a/src/agent/coverage/src/record/linux/debugger.rs b/src/agent/coverage/src/record/linux/debugger.rs index 8f0f462631..fff7a7a575 100644 --- a/src/agent/coverage/src/record/linux/debugger.rs +++ b/src/agent/coverage/src/record/linux/debugger.rs @@ -223,7 +223,7 @@ impl Images { for map in proc.maps()? { if let Some(last) = group.last() { - if last.pathname == map.pathname { + if last.pathname != map.pathname { // The current memory mapping is the start of a new group. // // Consume the current group, and track any new module image.