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
1064 ss << function_name << " at ";1064 ss << function_name << " at ";
1065 1065
1066 const auto source_loc = d.current_source_location();1066 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)
1068 << ':'1068 << ':'
1069 << source_loc.begin_line;1069 << source_loc.begin_line;
1070 1070