From: Mark Kettenis Date: Thu, 4 May 2000 19:25:57 +0000 (+0000) Subject: * i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not X-Git-Tag: readline-pre-41-import~566 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=318b21ef35b29746252ca0b6e998b305471ae01f;p=platform%2Fupstream%2Fbinutils.git * i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not already defined. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1e7433c..c24cc82 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-05-04 Mark Kettenis + + * i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not + already defined. + 2000-05-01 Mark Kettenis * infrun.c (handle_inferior_event): Add missing call to keep_going diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index 2bfac29..287b23b 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