]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not
authorMark Kettenis <kettenis@gnu.org>
Thu, 4 May 2000 19:14:26 +0000 (19:14 +0000)
committerMark Kettenis <kettenis@gnu.org>
Thu, 4 May 2000 19:14:26 +0000 (19:14 +0000)
already defined.

gdb/ChangeLog
gdb/i386-linux-nat.c

index f3ad899a8839c66c9b4a3213912eb790b619c5fd..753971ccd8625f901f94f5a5aaabce3d23e8fcc1 100644 (file)
@@ -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:
index 93ea241759f3df00dd9b2b22dd43a3b24c2aae4c..ca74fe0c22738ade1e1be95e355bbde7d2896652 100644 (file)
@@ -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