summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-10-04 02:55:57 +0300
committerAndreas Kling <kling@serenityos.org>2022-12-28 11:53:41 +0100
commitcae736b5fa98216d183ddaff2e79a2e9a72f4a25 (patch)
tree617a82f30df6c2a8e73f56bc5cc3314ea3b024d0
parente1ee8f89f230fd68d22741d58ced08df65118153 (diff)
downloadserenity-cae736b5fa98216d183ddaff2e79a2e9a72f4a25.zip
HackStudio: Remove i686 support
-rw-r--r--Userland/DevTools/HackStudio/Debugger/RegistersModel.cpp30
1 files changed, 2 insertions, 28 deletions
diff --git a/Userland/DevTools/HackStudio/Debugger/RegistersModel.cpp b/Userland/DevTools/HackStudio/Debugger/RegistersModel.cpp
index b67f16b63d..7219b5eb70 100644
--- a/Userland/DevTools/HackStudio/Debugger/RegistersModel.cpp
+++ b/Userland/DevTools/HackStudio/Debugger/RegistersModel.cpp
@@ -12,19 +12,7 @@ namespace HackStudio {
RegistersModel::RegistersModel(PtraceRegisters const& regs)
: m_raw_registers(regs)
{
-#if ARCH(I386) || ARCH(X86_64)
-# if ARCH(I386)
- m_registers.append({ "eax", regs.eax });
- m_registers.append({ "ebx", regs.ebx });
- m_registers.append({ "ecx", regs.ecx });
- m_registers.append({ "edx", regs.edx });
- m_registers.append({ "esp", regs.esp });
- m_registers.append({ "ebp", regs.ebp });
- m_registers.append({ "esi", regs.esi });
- m_registers.append({ "edi", regs.edi });
- m_registers.append({ "eip", regs.eip });
- m_registers.append({ "eflags", regs.eflags });
-# else
+#if ARCH(X86_64)
m_registers.append({ "rax", regs.rax });
m_registers.append({ "rbx", regs.rbx });
m_registers.append({ "rcx", regs.rcx });
@@ -43,7 +31,6 @@ RegistersModel::RegistersModel(PtraceRegisters const& regs)
m_registers.append({ "r14", regs.r14 });
m_registers.append({ "r15", regs.r15 });
m_registers.append({ "rflags", regs.rflags });
-# endif
m_registers.append({ "cs", regs.cs });
m_registers.append({ "ss", regs.ss });
@@ -61,19 +48,7 @@ RegistersModel::RegistersModel(PtraceRegisters const& regs)
RegistersModel::RegistersModel(PtraceRegisters const& current_regs, PtraceRegisters const& previous_regs)
: m_raw_registers(current_regs)
{
-#if ARCH(I386) || ARCH(X86_64)
-# if ARCH(I386)
- m_registers.append({ "eax", current_regs.eax, current_regs.eax != previous_regs.eax });
- m_registers.append({ "ebx", current_regs.ebx, current_regs.ebx != previous_regs.ebx });
- m_registers.append({ "ecx", current_regs.ecx, current_regs.ecx != previous_regs.ecx });
- m_registers.append({ "edx", current_regs.edx, current_regs.edx != previous_regs.edx });
- m_registers.append({ "esp", current_regs.esp, current_regs.esp != previous_regs.esp });
- m_registers.append({ "ebp", current_regs.ebp, current_regs.ebp != previous_regs.ebp });
- m_registers.append({ "esi", current_regs.esi, current_regs.esi != previous_regs.esi });
- m_registers.append({ "edi", current_regs.edi, current_regs.edi != previous_regs.edi });
- m_registers.append({ "eip", current_regs.eip, current_regs.eip != previous_regs.eip });
- m_registers.append({ "eflags", current_regs.eflags, current_regs.eflags != previous_regs.eflags });
-# else
+#if ARCH(X86_64)
m_registers.append({ "rax", current_regs.rax, current_regs.rax != previous_regs.rax });
m_registers.append({ "rbx", current_regs.rbx, current_regs.rbx != previous_regs.rbx });
m_registers.append({ "rcx", current_regs.rcx, current_regs.rcx != previous_regs.rcx });
@@ -92,7 +67,6 @@ RegistersModel::RegistersModel(PtraceRegisters const& current_regs, PtraceRegist
m_registers.append({ "r14", current_regs.r14, current_regs.r14 != previous_regs.r14 });
m_registers.append({ "r15", current_regs.r15, current_regs.r15 != previous_regs.r15 });
m_registers.append({ "rflags", current_regs.rflags, current_regs.rflags != previous_regs.rflags });
-# endif
m_registers.append({ "cs", current_regs.cs, current_regs.cs != previous_regs.cs });
m_registers.append({ "ss", current_regs.ss, current_regs.ss != previous_regs.ss });
m_registers.append({ "ds", current_regs.ds, current_regs.ds != previous_regs.ds });