소스 검색

signal: Document the strange si_codes used by ptrace event stops

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Eric W. Biederman 8 년 전
부모
커밋
f9886bc50a
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      include/uapi/asm-generic/siginfo.h

+ 5 - 0
include/uapi/asm-generic/siginfo.h

@@ -225,6 +225,11 @@ typedef struct siginfo {
 #define TRAP_HWBKPT     4	/* hardware breakpoint/watchpoint */
 #define TRAP_HWBKPT     4	/* hardware breakpoint/watchpoint */
 #define NSIGTRAP	4
 #define NSIGTRAP	4
 
 
+/*
+ * There are an additional set of SIGTRAP si_codes used by ptrace
+ * that of the form: ((PTRACE_EVENT_XXX << 8) | SIGTRAP)
+ */
+
 /*
 /*
  * SIGCHLD si_codes
  * SIGCHLD si_codes
  */
  */