summaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-05-04 19:25:57 +0000
committerMark Kettenis <kettenis@gnu.org>2000-05-04 19:25:57 +0000
commitf81e66f08318034597aff77db3e1bb91bd009aa3 (patch)
tree803811a26855f4b60e95625206a911d5e2fe6407 /gdb/i386-linux-nat.c
parentf6efec4e6c777b0703ef84c079e4c7950c2f0096 (diff)
downloadgdb-f81e66f08318034597aff77db3e1bb91bd009aa3.tar.gz
* i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not
already defined.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r--gdb/i386-linux-nat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 2bfac295efe..287b23bcb29 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -123,6 +123,13 @@ int have_ptrace_getxfpregs =
the GETREGS request. I want to avoid changing `infptrace.c' right
now. */
+#ifndef PT_READ_U
+#define PT_READ_U PTRACE_PEEKUSR
+#endif
+#ifndef PT_WRITE_U
+#define PT_WRITE_U PTRACE_POKEUSR
+#endif
+
/* Default the type of the ptrace transfer to int. */
#ifndef PTRACE_XFER_TYPE
#define PTRACE_XFER_TYPE int