175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
13 lines
613 B
C++
13 lines
613 B
C++
#include <sys/ptrace.h>
|
|
#include <sys/user.h>
|
|
#include <sys/wait.h>
|
|
#include <cstddef>
|
|
#include <iostream>
|
|
int main(){
|
|
std::cout<<"{\"debug_offset\":"<<offsetof(user,u_debugreg)<<",\"register_bytes\":"<<sizeof(user_regs_struct)
|
|
<<",\"getregs\":"<<PTRACE_GETREGS<<",\"setregs\":"<<PTRACE_SETREGS
|
|
<<",\"peekuser\":"<<PTRACE_PEEKUSER<<",\"pokeuser\":"<<PTRACE_POKEUSER
|
|
<<",\"seize\":"<<PTRACE_SEIZE<<",\"interrupt\":"<<PTRACE_INTERRUPT
|
|
<<",\"step\":"<<PTRACE_SINGLESTEP<<",\"cont\":"<<PTRACE_CONT<<",\"detach\":"<<PTRACE_DETACH<<",\"wall\":"<<__WALL<<"}\n";
|
|
}
|