mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +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:
parent
f2d6cac692
commit
c9a8dfa1bf
5 changed files with 21 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue