* infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
authorMark Kettenis <kettenis@gnu.org>
Wed, 11 Aug 2004 09:17:39 +0000 (09:17 +0000)
committerMark Kettenis <kettenis@gnu.org>
Wed, 11 Aug 2004 09:17:39 +0000 (09:17 +0000)
instead of FIVE_ARG_PTRACE.

gdb/ChangeLog
gdb/infptrace.c

index 45abe47e3a2dbce38ccac5715eb52c3c961560cb..5f33f8f043d0c87e5a84ca8e0ce6b3492d488124 100644 (file)
@@ -1,5 +1,8 @@
 2004-08-11  Mark Kettenis  <kettenis@gnu.org>
 
+       * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
+       instead of FIVE_ARG_PTRACE.
+
        * inflow.c (O_NOCTTY): Define to zero if not already defined.
        (new_tty): Use O_NOCTTY unconditionally.
 
index 11fe27103767a98db04879e6b85898911a566eb5..60c4198ff08d69180fa1a0dc4b0f932e9770304f 100644 (file)
@@ -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