diff options
author | Mark Kettenis <kettenis@gnu.org> | 2000-05-04 19:25:57 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2000-05-04 19:25:57 +0000 |
commit | 318b21ef35b29746252ca0b6e998b305471ae01f (patch) | |
tree | 633a89f63261712f6184ce08eec21361202f5900 /gdb/i386-linux-nat.c | |
parent | e441088d68ff1139f88e4a78ba1035d4f6190ab9 (diff) | |
download | gdb-318b21ef35b29746252ca0b6e998b305471ae01f.zip gdb-318b21ef35b29746252ca0b6e998b305471ae01f.tar.gz gdb-318b21ef35b29746252ca0b6e998b305471ae01f.tar.bz2 |
* 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.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 |