diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-06 11:35:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-06 11:35:40 +0200 |
commit | 4c44c96bc6178d4cd6968a33baddd93c47cd10d4 (patch) | |
tree | 4838a23fb3b019ba70055275d06d49ffd542b854 /Libraries | |
parent | 078969b92f3569518199f20a6dffed836a2f523d (diff) | |
download | serenity-4c44c96bc6178d4cd6968a33baddd93c47cd10d4.zip |
LibDebug: Unbreak LineProgram::parse_source_directories()
This regressed with ac9f6fd1f8e235039fa3416f6ed68d07cbbf896c where
we switched to using InputMemoryStream.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibDebug/Dwarf/LineProgram.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Libraries/LibDebug/Dwarf/LineProgram.cpp b/Libraries/LibDebug/Dwarf/LineProgram.cpp index 28ed26d8ee..99a5fb7136 100644 --- a/Libraries/LibDebug/Dwarf/LineProgram.cpp +++ b/Libraries/LibDebug/Dwarf/LineProgram.cpp @@ -56,8 +56,9 @@ void LineProgram::parse_source_directories() { m_source_directories.append("."); - String directory; - while (m_stream >> directory) { + while (m_stream.peek_or_error()) { + String directory; + m_stream >> directory; #ifdef DWARF_DEBUG dbg() << "directory: " << directory; #endif |