LibDebug: Oops, file:line info should have '/' between directory & file

This commit is contained in:
Andreas Kling 2020-11-15 15:11:16 +01:00
parent 485d28298a
commit 42bc518d70
Notes: sideshowbarker 2024-07-19 01:23:03 +09:00

View file

@ -101,8 +101,9 @@ void LineProgram::append_to_line_info()
String directory = m_source_directories[m_source_files[m_file_index].directory_index];
StringBuilder full_path(directory.length() + m_source_files[m_file_index].name.length());
StringBuilder full_path(directory.length() + m_source_files[m_file_index].name.length() + 1);
full_path.append(directory);
full_path.append('/');
full_path.append(m_source_files[m_file_index].name);
m_lines.append({ m_address, full_path.to_string(), m_line });