mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibDebug: Implement support for DWARF 5 compilation unit headers
This commit is contained in:
parent
a3f2af49f9
commit
6b4448b623
Notes:
sideshowbarker
2024-07-18 18:59:49 +09:00
Author: https://github.com/gunnarbeutner
Commit: 6b4448b623
Pull-request: https://github.com/SerenityOS/serenity/pull/6714
4 changed files with 54 additions and 8 deletions
|
@ -12,13 +12,14 @@ CompilationUnit::CompilationUnit(const DwarfInfo& dwarf_info, u32 offset, const
|
|||
: m_dwarf_info(dwarf_info)
|
||||
, m_offset(offset)
|
||||
, m_header(header)
|
||||
, m_abbreviations(dwarf_info, header.abbrev_offset)
|
||||
, m_abbreviations(dwarf_info, header.abbrev_offset())
|
||||
{
|
||||
VERIFY(header.version() < 5 || header.unit_type() == CompilationUnitType::Full);
|
||||
}
|
||||
|
||||
DIE CompilationUnit::root_die() const
|
||||
{
|
||||
return DIE(*this, m_offset + sizeof(CompilationUnitHeader));
|
||||
return DIE(*this, m_offset + m_header.header_size());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue