mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibDebug: Break inclusion cycle through many forward-declarations
This commit is contained in:
parent
7c5e30daaa
commit
75673319ad
6 changed files with 23 additions and 6 deletions
|
@ -5,8 +5,10 @@
|
|||
*/
|
||||
|
||||
#include "CompilationUnit.h"
|
||||
#include "DIE.h"
|
||||
#include <AK/ByteReader.h>
|
||||
#include <LibDebug/Dwarf/DIE.h>
|
||||
#include <LibDebug/Dwarf/DwarfInfo.h>
|
||||
#include <LibDebug/Dwarf/LineProgram.h>
|
||||
|
||||
namespace Debug::Dwarf {
|
||||
|
||||
|
@ -20,6 +22,8 @@ CompilationUnit::CompilationUnit(DwarfInfo const& dwarf_info, u32 offset, Compil
|
|||
VERIFY(header.version() < 5 || header.unit_type() == CompilationUnitType::Full);
|
||||
}
|
||||
|
||||
CompilationUnit::~CompilationUnit() = default;
|
||||
|
||||
DIE CompilationUnit::root_die() const
|
||||
{
|
||||
return DIE(*this, m_offset + m_header.header_size());
|
||||
|
@ -31,6 +35,11 @@ DIE CompilationUnit::get_die_at_offset(u32 die_offset) const
|
|||
return DIE(*this, die_offset);
|
||||
}
|
||||
|
||||
LineProgram const& CompilationUnit::line_program() const
|
||||
{
|
||||
return *m_line_program;
|
||||
}
|
||||
|
||||
Optional<FlatPtr> CompilationUnit::base_address() const
|
||||
{
|
||||
if (m_has_cached_base_address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue