#include <sys/ptrace.h> long ptrace(enum __ptrace_request request, pid_t pid, void *addr, void *data); request ã«ã¢ã¿ããããããã»ã¹ã«ä½ãè¡ãããæå®ããã ä¾ãã°ã以ä¸ãæå®ã§ããã(åè: man ptrace) PTRACE_ATTACH pid ã§æå®ããããã»ã¹ã«ã¢ã¿ãããããã¢ã¿ããããããã»ã¹ã¯åããã»ã¹ã¨ãã¦ãã¬ã¼ã¹ã§ããããã«ããã(å¼æ° addr 㨠data ã¯ç¡è¦ãããã) PTRACE_PEEKTEXT, PTRACE_PEEKDATA ã¡ã¢ãªã® addr ã®ä½ç½®ãåç §ããã(å¼æ° data ã¯ç¡è¦ãããã) PTRACE_PEEKUSR USER é åã®ãªãã»ãã addr ã®ä½ç½®ãåç §ããã(å¼æ° data ã¯ç¡è¦ãããã) PTRACE_POKET
{{#tags}}- {{label}}
{{/tags}}