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

LibDebug: Move get_die_at_offset to Dwarf::CompilationUnit

This commit is contained in:
Itamar 2021-06-12 10:29:33 +03:00 committed by Andreas Kling
parent 15b3957885
commit fea9bb8c51
5 changed files with 9 additions and 9 deletions

View file

@ -23,4 +23,10 @@ DIE CompilationUnit::root_die() const
return DIE(*this, m_offset + m_header.header_size());
}
DIE CompilationUnit::get_die_at_offset(u32 die_offset) const
{
VERIFY(die_offset >= offset() && die_offset < offset() + size());
return DIE(*this, die_offset);
}
}