mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
strace: Replace incorrect syscall arg2 register
Since commit e6df1c9988
which switched us
over to using the syscall/sysret instruction the second syscall
argument changed from rcx to rdi. Update strace as well to print the
actually correct values for the second arg.
This commit is contained in:
parent
209c588ed1
commit
c55b4d49a3
1 changed files with 1 additions and 1 deletions
|
@ -899,7 +899,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
#if ARCH(X86_64)
|
||||
syscall_arg_t syscall_index = regs.rax;
|
||||
syscall_arg_t arg1 = regs.rdx;
|
||||
syscall_arg_t arg2 = regs.rcx;
|
||||
syscall_arg_t arg2 = regs.rdi;
|
||||
syscall_arg_t arg3 = regs.rbx;
|
||||
#elif ARCH(AARCH64)
|
||||
syscall_arg_t syscall_index = 0; // FIXME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue