1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:47:35 +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

@ -8,6 +8,7 @@
#include <AK/ByteBuffer.h>
#include <AK/Demangle.h>
#include <AK/OwnPtr.h>
#include <AK/Platform.h>
#include <AK/StringBuilder.h>
#include <LibC/sys/arch/i386/regs.h>
#include <LibCore/ArgsParser.h>
@ -81,6 +82,7 @@ static bool handle_disassemble_command(const String& command, void* first_instru
static bool handle_backtrace_command(const PtraceRegisters& regs)
{
#if ARCH(I386)
auto ebp_val = regs.ebp;
auto eip_val = regs.eip;
outln("Backtrace:");
@ -98,6 +100,10 @@ static bool handle_backtrace_command(const PtraceRegisters& regs)
eip_val = (u32)next_eip.value();
ebp_val = (u32)next_ebp.value();
}
#else
(void)regs;
TODO();
#endif
return true;
}