1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

LibDebug: Move everything into the "Debug" namespace

This commit is contained in:
Luke 2020-08-25 04:33:07 +01:00 committed by Andreas Kling
parent b58ca7cf3d
commit 694b86a4bf
31 changed files with 115 additions and 85 deletions

View file

@ -29,7 +29,7 @@
#include <AK/Stream.h>
namespace Dwarf {
namespace Debug::Dwarf {
AbbreviationsMap::AbbreviationsMap(const DwarfInfo& dwarf_info, u32 offset)
: m_dwarf_info(dwarf_info)

View file

@ -31,7 +31,7 @@
#include <AK/Optional.h>
#include <AK/Types.h>
namespace Dwarf {
namespace Debug::Dwarf {
class DwarfInfo;

View file

@ -26,7 +26,7 @@
#include "CompilationUnit.h"
#include "DIE.h"
namespace Dwarf {
namespace Debug::Dwarf {
CompilationUnit::CompilationUnit(const DwarfInfo& dwarf_info, u32 offset, const CompilationUnitHeader& header)
: m_dwarf_info(dwarf_info)

View file

@ -29,7 +29,7 @@
#include "AbbreviationsMap.h"
#include <AK/Types.h>
namespace Dwarf {
namespace Debug::Dwarf {
class DwarfInfo;
class DIE;

View file

@ -30,7 +30,7 @@
#include <AK/ByteBuffer.h>
#include <AK/Stream.h>
namespace Dwarf {
namespace Debug::Dwarf {
DIE::DIE(const CompilationUnit& unit, u32 offset)
: m_compilation_unit(unit)

View file

@ -33,7 +33,7 @@
#include <AK/Optional.h>
#include <AK/Types.h>
namespace Dwarf {
namespace Debug::Dwarf {
class CompilationUnit;

View file

@ -28,7 +28,7 @@
#include <AK/Stream.h>
namespace Dwarf {
namespace Debug::Dwarf {
DwarfInfo::DwarfInfo(NonnullRefPtr<const ELF::Loader> elf)
: m_elf(elf)

View file

@ -34,7 +34,7 @@
#include <AK/String.h>
#include <LibELF/Loader.h>
namespace Dwarf {
namespace Debug::Dwarf {
class DwarfInfo : public RefCounted<DwarfInfo> {
public:

View file

@ -28,7 +28,7 @@
#include <AK/Types.h>
namespace Dwarf {
namespace Debug::Dwarf {
struct [[gnu::packed]] CompilationUnitHeader
{

View file

@ -29,7 +29,7 @@
#include <sys/arch/i386/regs.h>
namespace Dwarf::Expression {
namespace Debug::Dwarf::Expression {
Value evaluate(ReadonlyBytes bytes, const PtraceRegisters& regs)
{

View file

@ -31,7 +31,7 @@
class PtraceRegisters;
namespace Dwarf::Expression {
namespace Debug::Dwarf::Expression {
enum class Type {
None,

View file

@ -30,6 +30,8 @@
//#define DWARF_DEBUG
namespace Debug::Dwarf {
LineProgram::LineProgram(InputMemoryStream& stream)
: m_stream(stream)
{
@ -252,3 +254,5 @@ void LineProgram::run_program()
}
}
}
}

View file

@ -30,6 +30,8 @@
#include <AK/String.h>
#include <AK/Vector.h>
namespace Debug::Dwarf {
class LineProgram {
public:
explicit LineProgram(InputMemoryStream& stream);
@ -55,8 +57,7 @@ private:
void handle_standard_opcode(u8 opcode);
void handle_sepcial_opcode(u8 opcode);
struct [[gnu::packed]] UnitHeader32
{
struct [[gnu::packed]] UnitHeader32 {
u32 length;
u16 version;
u32 header_length;
@ -113,3 +114,5 @@ private:
Vector<LineInfo> m_lines;
};
}