summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorKieran Bingham <kieranbingham@gmail.com>2009-05-08 18:48:15 +0400
committerPaul Mundt <lethal@linux-sh.org>2009-05-08 19:06:03 +0400
commitbe6514c6295cc79498eeb9a8f933451082ca9e69 (patch)
tree39861a24f59be4475c4875495d1258968ef779d0 /arch/sh
parent168f36237b16e2b3159e24c7d3b658e3c912d149 (diff)
downloadlinux-be6514c6295cc79498eeb9a8f933451082ca9e69.tar.xz
sh: Add in some ptrace definitions from GDB.
Plugs in PT_TEXT_END_ADDR/PT_TEXT_ADDR/PT_DATA_ADDR/PT_TEXT_LEN definitions. Signed-off-by: Kieran Bingham <kieranbingham@gmail.com> Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/asm/ptrace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/include/asm/ptrace.h b/arch/sh/include/asm/ptrace.h
index 68e20ff9aa9b..1dc12cb44a2d 100644
--- a/arch/sh/include/asm/ptrace.h
+++ b/arch/sh/include/asm/ptrace.h
@@ -102,6 +102,11 @@ struct pt_dspregs {
#define PTRACE_GETDSPREGS 55 /* DSP registers */
#define PTRACE_SETDSPREGS 56
+#define PT_TEXT_END_ADDR 240
+#define PT_TEXT_ADDR 244 /* &(struct user)->start_code */
+#define PT_DATA_ADDR 248 /* &(struct user)->start_data */
+#define PT_TEXT_LEN 252
+
#ifdef __KERNEL__
#include <asm/addrspace.h>