From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3393 invoked by alias); 9 Aug 2004 21:52:58 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3366 invoked from network); 9 Aug 2004 21:52:56 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.77.109) by sourceware.org with SMTP; 9 Aug 2004 21:52:56 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i79LqpZt001149; Mon, 9 Aug 2004 23:52:51 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i79LqpmT059806; Mon, 9 Aug 2004 23:52:51 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i79LqnNb059801; Mon, 9 Aug 2004 23:52:49 +0200 (CEST) Date: Mon, 09 Aug 2004 21:52:00 -0000 Message-Id: <200408092152.i79LqnNb059801@elgar.kettenis.dyndns.org> From: Mark Kettenis To: brobecker@gnat.com CC: gdb@sources.redhat.com In-reply-to: <20040809053715.GK1192@gnat.com> (message from Joel Brobecker on Sun, 8 Aug 2004 22:37:15 -0700) Subject: Re: ptrace(2) autoconf tests References: <200408082100.i78L0BdZ005809@elgar.kettenis.dyndns.org> <20040809053715.GK1192@gnat.com> X-SW-Source: 2004-08/txt/msg00142.txt.bz2 Can people test this on AIX and HP-UX 10.20? I'm fairly certain this will work, but I can't really test this myself, until I find some 10.20 installation media for my 712. Mark Index: ChangeLog from Mark Kettenis * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5 instead of FIVE_ARG_PTRACE. Index: infptrace.c =================================================================== RCS file: /cvs/src/src/gdb/infptrace.c,v retrieving revision 1.36 diff -u -p -r1.36 infptrace.c --- infptrace.c 6 Aug 2004 20:47:25 -0000 1.36 +++ infptrace.c 9 Aug 2004 21:46:45 -0000 @@ -122,7 +122,7 @@ call_ptrace (int request, int pid, PTRAC 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, PTRAC 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, PTRAC } -#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