mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
Kernel+Userland: Add x86_64 registers to RegisterState/PtraceRegisters
This commit is contained in:
parent
10ca7f18a7
commit
233ef26e4d
13 changed files with 265 additions and 23 deletions
|
@ -324,7 +324,11 @@ void* DebugSession::single_step()
|
|||
|
||||
auto regs = get_registers();
|
||||
constexpr u32 TRAP_FLAG = 0x100;
|
||||
#if ARCH(I386)
|
||||
regs.eflags |= TRAP_FLAG;
|
||||
#else
|
||||
regs.rflags |= TRAP_FLAG;
|
||||
#endif
|
||||
set_registers(regs);
|
||||
|
||||
continue_debuggee();
|
||||
|
@ -335,7 +339,11 @@ void* DebugSession::single_step()
|
|||
}
|
||||
|
||||
regs = get_registers();
|
||||
#if ARCH(I386)
|
||||
regs.eflags &= ~(TRAP_FLAG);
|
||||
#else
|
||||
regs.rflags &= ~(TRAP_FLAG);
|
||||
#endif
|
||||
set_registers(regs);
|
||||
#if ARCH(I386)
|
||||
return (void*)regs.eip;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue