mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibDebug: Move get_die_at_offset to Dwarf::CompilationUnit
This commit is contained in:
parent
15b3957885
commit
fea9bb8c51
Notes:
sideshowbarker
2024-07-18 12:01:54 +09:00
Author: https://github.com/itamar8910
Commit: fea9bb8c51
Pull-request: https://github.com/SerenityOS/serenity/pull/8149
Reviewed-by: https://github.com/gunnarbeutner
5 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue