diff options
author | Andreas Kling <kling@serenityos.org> | 2020-11-15 15:11:16 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-15 15:12:13 +0100 |
commit | 42bc518d709c0ca59d3347fb9dd112a3a0234e73 (patch) | |
tree | 11f6144095a7443a5cb9d464cd6275ba633d5e11 /Libraries | |
parent | 485d28298a6396b5c1105012e9b24ae832718f80 (diff) | |
download | serenity-42bc518d709c0ca59d3347fb9dd112a3a0234e73.zip |
LibDebug: Oops, file:line info should have '/' between directory & file
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibDebug/Dwarf/LineProgram.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibDebug/Dwarf/LineProgram.cpp b/Libraries/LibDebug/Dwarf/LineProgram.cpp index be96238a18..a6d165db86 100644 --- a/Libraries/LibDebug/Dwarf/LineProgram.cpp +++ b/Libraries/LibDebug/Dwarf/LineProgram.cpp @@ -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 }); |