1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:27:35 +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

@ -37,7 +37,7 @@ namespace Dwarf {
class CompilationUnit;
// DIE = Dwarf Information Entry
// DIE = Debugging Information Entry
class DIE {
public:
DIE(const CompilationUnit&, u32 offset);

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()

View file

@ -38,7 +38,7 @@ namespace Dwarf {
class DwarfInfo : public RefCounted<DwarfInfo> {
public:
static NonnullRefPtr<DwarfInfo> create(NonnullRefPtr<const ELF::Loader> elf) { return adopt(*new DwarfInfo(elf)); }
static NonnullRefPtr<DwarfInfo> create(NonnullRefPtr<const ELF::Loader> elf) { return adopt(*new DwarfInfo(move(elf))); }
const ByteBuffer& debug_info_data() const { return m_debug_info_data; }
const ByteBuffer& abbreviation_data() const { return m_abbreviation_data; }