summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-05-04 19:14:26 +0000
committerMark Kettenis <kettenis@gnu.org>2000-05-04 19:14:26 +0000
commitcd2414b9d3ac0e63403a90eb5bb786f8c2ee9ebf (patch)
tree966a9eb54b5830cb90bc611f45366dbcd77ee458
parente67a235df17a87bb6d34e93d69b1b3d6c067d24e (diff)
downloadgdb-cd2414b9d3ac0e63403a90eb5bb786f8c2ee9ebf.tar.gz
* i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not
already defined.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/i386-linux-nat.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f3ad899a883..753971ccd86 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-04 Mark Kettenis <kettenis@gnu.org>
+
+ * i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not
+ already defined.
+
2000-05-01 Stan Shebs <shebs@apple.com>
Remove obsolete Gould configuration:
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 93ea241759f..ca74fe0c227 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