Index: src/common/dwarf_cu_to_module.cc |
=================================================================== |
--- src/common/dwarf_cu_to_module.cc (revision 726) |
+++ src/common/dwarf_cu_to_module.cc (working copy) |
@@ -856,12 +856,12 @@ |
// about what result we produce in that case, just as long as we don't |
// hang or crash. |
while (func_it != functions->end() |
- && current >= (*func_it)->address |
+ && next_transition >= (*func_it)->address |
&& !within(**func_it, next_transition)) |
func_it++; |
func = (func_it != functions->end()) ? *func_it : NULL; |
while (line_it != lines_.end() |
- && current >= line_it->address |
+ && next_transition >= line_it->address |
&& !within(*line_it, next_transition)) |
line_it++; |
line = (line_it != lines_.end()) ? &*line_it : NULL; |