1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00

LibDebug: Miscellaneous fixes from #2097

This commit is contained in:
Itamar 2020-05-06 17:22:41 +03:00 committed by Andreas Kling
parent 42b61cfe2c
commit 5fd64045b1
5 changed files with 5 additions and 5 deletions

View file

@ -42,7 +42,7 @@ ByteBuffer DwarfInfo::section_data(const String& section_name)
{
auto section = m_elf->image().lookup_section(section_name);
ASSERT(!section.is_undefined());
return ByteBuffer::wrap(reinterpret_cast<const u8*>(section.raw_data()), section.size());
return section.wrapping_byte_buffer();
}
void DwarfInfo::populate_compilation_units()