1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

LibDebug: Pass read_from_stream calls through read_value instead

This commit is contained in:
Tim Schumacher 2023-01-23 19:43:01 +01:00 committed by Linus Groh
parent 6972e98efa
commit 448b187782
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ LineProgram::LineProgram(DwarfInfo& dwarf_info, Core::Stream::SeekableStream& st
ErrorOr<void> LineProgram::parse_unit_header()
{
m_unit_header = TRY(LineProgramUnitHeader32::read_from_stream(m_stream));
m_unit_header = TRY(m_stream.read_value<LineProgramUnitHeader32>());
VERIFY(m_unit_header.version() >= MIN_DWARF_VERSION && m_unit_header.version() <= MAX_DWARF_VERSION);
VERIFY(m_unit_header.opcode_base() <= sizeof(m_unit_header.std_opcode_lengths) / sizeof(m_unit_header.std_opcode_lengths[0]) + 1);