mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibDebug: Pass read_from_stream
calls through read_value
instead
This commit is contained in:
parent
6972e98efa
commit
448b187782
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ ErrorOr<void> DwarfInfo::populate_compilation_units()
|
|||
while (!debug_info_stream->is_eof()) {
|
||||
auto unit_offset = TRY(debug_info_stream->tell());
|
||||
|
||||
auto compilation_unit_header = TRY(CompilationUnitHeader::read_from_stream(*debug_info_stream));
|
||||
auto compilation_unit_header = TRY(debug_info_stream->read_value<CompilationUnitHeader>());
|
||||
VERIFY(compilation_unit_header.common.version <= 5);
|
||||
VERIFY(compilation_unit_header.address_size() == sizeof(FlatPtr));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue