4 ms·
Was curious; quoting https://www.man7.org/linux/man-pages/man2/ptrace.2.html https://www.man7.org/linux/man-pages/man2/ptrace.2.html: > PTRACE_SYSEMU, PTRACE_S
by exikyut 6y ago
Was curious; quoting https://www.man7.org/linux/man-pages/man2/ptrace.2.html https://www.man7.org/linux/man-pages/man2/ptrace.2.html:
> PTRACE_SYSEMU, PTRACE_SYSEMU_SINGLESTEP (since Linux 2.6.14)
> For PTRACE_SYSEMU, continue and stop on entry to the next system call, which will not be executed. See the documentation on syscall-stops below. For PTRACE_SYSEMU_SINGLESTEP, do the same but also singlestep if not a system call. This call is used by programs like User Mode Linux that want to emulate all the tracee's system calls. The data argument is treated as for PTRACE_CONT. The addr argument is ignored. These requests are currently supported only on x86.
That sounds like a fun pile of dragons. Good luck backspacing the last bit out soon ;)