summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/ptrace.h
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-07-24 15:34:58 +0400
committerCatalin Marinas <catalin.marinas@arm.com>2009-07-24 15:34:58 +0400
commit68b7f7153fa58df710924fbb79722717d2d16094 (patch)
treef7a170a4e93be7b5ea852cccfc03e88bd20ee964 /arch/arm/include/asm/ptrace.h
parent5d57795e26c413656725c26bd053dbee3711adee (diff)
downloadlinux-68b7f7153fa58df710924fbb79722717d2d16094.tar.xz
nommu: ptrace support
The patch below adds ARM ptrace functions to get the process load address. This is required for useful userspace debugging on mmuless systems. These values are obtained by reading magic offsets with PTRACE_PEEKUSR, as on other nommu targets. I picked arbitrary large values for the offsets. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'arch/arm/include/asm/ptrace.h')
-rw-r--r--arch/arm/include/asm/ptrace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h
index 67b833c9b6b9..bbecccda76d0 100644
--- a/arch/arm/include/asm/ptrace.h
+++ b/arch/arm/include/asm/ptrace.h
@@ -82,6 +82,14 @@
#define PSR_ENDSTATE 0
#endif
+/*
+ * These are 'magic' values for PTRACE_PEEKUSR that return info about where a
+ * process is located in memory.
+ */
+#define PT_TEXT_ADDR 0x10000
+#define PT_DATA_ADDR 0x10004
+#define PT_TEXT_END_ADDR 0x10008
+
#ifndef __ASSEMBLY__
/*