aboutsummaryrefslogtreecommitdiff
path: root/gdb/infptrace.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-08-11 09:17:39 +0000
committerMark Kettenis <kettenis@gnu.org>2004-08-11 09:17:39 +0000
commitdaa98270063506c799496877db365320179e369b (patch)
tree677d63d7cd921f62a7da70c3cedfc6bd11daaea0 /gdb/infptrace.c
parentf2acbe1cfb21202beb2729561918a8b2f7bc9f00 (diff)
downloadfsf-binutils-gdb-daa98270063506c799496877db365320179e369b.zip
fsf-binutils-gdb-daa98270063506c799496877db365320179e369b.tar.gz
fsf-binutils-gdb-daa98270063506c799496877db365320179e369b.tar.bz2
* infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
instead of FIVE_ARG_PTRACE.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r--gdb/infptrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index 11fe271..60c4198 100644
--- a/gdb/infptrace.c
+++ b/gdb/infptrace.c
@@ -122,7 +122,7 @@ call_ptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
if (request == PT_SETTRC)
{
errno = 0;
-#if !defined (FIVE_ARG_PTRACE)
+#ifndef PTRACE_TYPE_ARG5
pt_status = ptrace (PT_SETTRC, pid, addr, data);
#else
/* Deal with HPUX 8.0 braindamage. We never use the
@@ -159,7 +159,7 @@ call_ptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
saved_errno = errno;
errno = 0;
#endif
-#if !defined (FIVE_ARG_PTRACE)
+#ifndef PTRACE_TYPE_ARG5
pt_status = ptrace (request, pid, addr, data);
#else
/* Deal with HPUX 8.0 braindamage. We never use the
@@ -178,7 +178,7 @@ call_ptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
}
-#if defined (DEBUG_PTRACE) || defined (FIVE_ARG_PTRACE)
+#if defined (DEBUG_PTRACE) || defined (PTRACE_TYPE_ARG5)
/* For the rest of the file, use an extra level of indirection */
/* This lets us breakpoint usefully on call_ptrace. */
#define ptrace call_ptrace