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

Userland: Add more TODO()s for arch-specific code

This enables building more of the userspace applications for x86_64.
This commit is contained in:
Gunnar Beutner 2021-06-23 21:47:19 +02:00 committed by Andreas Kling
parent f2d6cac692
commit c9a8dfa1bf
5 changed files with 21 additions and 2 deletions

View file

@ -12,7 +12,7 @@
namespace Debug::Dwarf::Expression {
Value evaluate(ReadonlyBytes bytes, PtraceRegisters const& regs)
Value evaluate(ReadonlyBytes bytes, [[maybe_unused]] PtraceRegisters const& regs)
{
InputMemoryStream stream(bytes);
@ -21,6 +21,7 @@ Value evaluate(ReadonlyBytes bytes, PtraceRegisters const& regs)
stream >> opcode;
switch (static_cast<Operations>(opcode)) {
#if ARCH(I386)
case Operations::RegEbp: {
ssize_t offset = 0;
stream.read_LEB128_signed(offset);
@ -32,6 +33,7 @@ Value evaluate(ReadonlyBytes bytes, PtraceRegisters const& regs)
stream.read_LEB128_signed(offset);
return Value { Type::UnsignedIntetger, regs.ebp + 2 * sizeof(size_t) + offset };
}
#endif
default:
dbgln("DWARF expr addr: {}", (const void*)bytes.data());