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

LibDebug: Remove i686 support

This commit is contained in:
Liav A 2022-10-04 02:54:37 +03:00 committed by Andreas Kling
parent a4c87fac56
commit 1d26b46884
4 changed files with 6 additions and 33 deletions

View file

@ -343,12 +343,8 @@ FlatPtr DebugSession::single_step()
// After the debuggee has stopped, we clear the TRAP flag.
auto regs = get_registers();
#if ARCH(I386) || ARCH(X86_64)
#if ARCH(X86_64)
constexpr u32 TRAP_FLAG = 0x100;
#endif
#if ARCH(I386)
regs.eflags |= TRAP_FLAG;
#elif ARCH(X86_64)
regs.rflags |= TRAP_FLAG;
#elif ARCH(AARCH64)
TODO_AARCH64();
@ -365,9 +361,7 @@ FlatPtr DebugSession::single_step()
}
regs = get_registers();
#if ARCH(I386)
regs.eflags &= ~(TRAP_FLAG);
#elif ARCH(X86_64)
#if ARCH(X86_64)
regs.rflags &= ~(TRAP_FLAG);
#elif ARCH(AARCH64)
TODO_AARCH64();