History

Fix source line assumption in sbl reader. - Statements can cross source line boundaries

arr committed 9 years ago

Commit 5ef656f1 parent 4afaca44 files · +10 −7Browse files

Showing the changes to src/exec/debugger.cpp (1 of 4 files). Show all

Unified · Split

src/exec/debugger.cpp+1−1
@@ -1064,7 +1064,7 @@ std::vector<std::string> debugger::resolve_to_function_source_line( · 1063 unmodified lines
10641064 ss << function_name << " at ";
10651065
10661066 const auto source_loc = d.current_source_location();
1067− ss << d.get_source_by_id(source_loc.source_id)
1067+ ss << d.get_source_by_id(source_loc.begin_source_id)
10681068 << ':'
10691069 << source_loc.begin_line;
10701070