[PATCH] Add more ptrace constants

Anton Blanchard anton at samba.org
Mon Jun 10 11:47:03 UTC 2013


	* process.c (ptrace_cmds): Add PTRACE_GETREGS64, PTRACE_SETREGS64,
	PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETEVRREGS,
	PTRACE_SETEVRREGS, PTRACE_GETVSRREGS, PTRACE_SETVSRREGS,
	PTRACE_SINGLEBLOCK, PPC_PTRACE_GETHWDBGINFO, PPC_PTRACE_SETHWDEBUG,
	PPC_PTRACE_DELHWDEBUG

Index: b/process.c
===================================================================
--- a/process.c
+++ b/process.c
@@ -1247,6 +1247,12 @@ static const struct xlat ptrace_cmds[] =
 #ifdef PTRACE_SETREGS
 	{ PTRACE_SETREGS,	"PTRACE_SETREGS"	},
 #endif
+#ifdef PTRACE_GETREGS64
+	{ PTRACE_GETREGS64,	"PTRACE_GETREGS64"	},
+#endif
+#ifdef PTRACE_SETREGS64
+	{ PTRACE_SETREGS64,	"PTRACE_SETREGS64"	},
+#endif
 #ifdef PTRACE_GETFPREGS
 	{ PTRACE_GETFPREGS,	"PTRACE_GETFPREGS"	},
 #endif
@@ -1283,6 +1289,24 @@ static const struct xlat ptrace_cmds[] =
 #ifdef PTRACE_SETREGSET
 	{ PTRACE_SETREGSET,	"PTRACE_SETREGSET"	},
 #endif
+#ifdef PTRACE_GET_DEBUGREG
+	{ PTRACE_GET_DEBUGREG,	"PTRACE_GET_DEBUGREG"	},
+#endif
+#ifdef PTRACE_SET_DEBUGREG
+	{ PTRACE_SET_DEBUGREG,	"PTRACE_SET_DEBUGREG"	},
+#endif
+#ifdef PTRACE_GETEVRREGS
+	{ PTRACE_GETEVRREGS,	"PTRACE_GETEVRREGS"	},
+#endif
+#ifdef PTRACE_SETEVRREGS
+	{ PTRACE_SETEVRREGS,	"PTRACE_SETEVRREGS"	},
+#endif
+#ifdef PTRACE_GETVSRREGS
+	{ PTRACE_GETVSRREGS,	"PTRACE_GETVSRREGS"	},
+#endif
+#ifdef PTRACE_SETVSRREGS
+	{ PTRACE_SETVSRREGS,	"PTRACE_SETVSRREGS"	},
+#endif
 #ifdef PTRACE_SET_SYSCALL
 	{ PTRACE_SET_SYSCALL,	"PTRACE_SET_SYSCALL"	},
 #endif
@@ -1295,6 +1319,18 @@ static const struct xlat ptrace_cmds[] =
 #ifdef PTRACE_LISTEN
 	{ PTRACE_LISTEN,	"PTRACE_LISTEN"		},
 #endif
+#ifdef PTRACE_SINGLEBLOCK
+	{ PTRACE_SINGLEBLOCK,	"PTRACE_SINGLEBLOCK"	},
+#endif
+#ifdef PPC_PTRACE_GETHWDBGINFO
+	{ PPC_PTRACE_GETHWDBGINFO,	"PPC_PTRACE_GETHWDBGINFO"	},
+#endif
+#ifdef PPC_PTRACE_SETHWDEBUG
+	{ PPC_PTRACE_SETHWDEBUG,	"PPC_PTRACE_SETHWDEBUG"	},
+#endif
+#ifdef PPC_PTRACE_DELHWDEBUG
+	{ PPC_PTRACE_DELHWDEBUG,	"PPC_PTRACE_DELHWDEBUG"	},
+#endif
 	{ PTRACE_SYSCALL,	"PTRACE_SYSCALL"	},
 
 	{ 0,			NULL			},




More information about the Strace-devel mailing list