From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5095 invoked by alias); 9 Aug 2004 13:09:46 -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 5087 invoked from network); 9 Aug 2004 13:09:45 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 9 Aug 2004 13:09:45 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i79D9de3019775 for ; Mon, 9 Aug 2004 09:09:44 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i79D9ca27332; Mon, 9 Aug 2004 09:09:38 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 710302BA3; Mon, 9 Aug 2004 09:09:31 -0400 (EDT) Message-ID: <4117778B.9020506@gnu.org> Date: Mon, 09 Aug 2004 13:09:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040801 MIME-Version: 1.0 To: Mark Kettenis Cc: mec.gnu@mindspring.com, gdb@sources.redhat.com Subject: Re: ptrace(2) autoconf tests References: <200408082100.i78L0BdZ005809@elgar.kettenis.dyndns.org> <41169E38.nail4UJ11C6PT@mindspring.com> <200408090046.i790kqgh057267@elgar.kettenis.dyndns.org> In-Reply-To: <200408090046.i790kqgh057267@elgar.kettenis.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00135.txt.bz2 > Anyway, below is a first hack at the autoconf tests. The tests > themselves are inspired by the standard AC_FUNC_CLOSEDIR_VOID and > AC_FUNC_SELECT_ARGTYPES tests. My code defines PTRACE_LONG if the > return type of ptrace(2) is `long', defines PTRACE_TYPE_ARG3 to the > type of the third argument of ptrace(2) and defines PTRACE_TYPE_ARG5 > to the type of the fifth argument of ptrace(2) if it has one. > PTRACE_TYPE_ARG3 will replace PTRACE_ARG3_TYPE. PTRACE_XFER_TYPE will > be set based on PTRACE_LONG and PTRACE_TYPE_ARG5 will replace > FIVE_ARG_PTRACE. How should we use this - I'm getting a bit lost with all the macros. Should autoconf define PTRACE_XFER_TYPE (PTRACE_RETURN_TYPE?) directly. Having this will let us wack a chunk of the nm*.h contents so looking good! -- Hmm, I just noticed call_ptrace() - appears to be something from the HP merge (...). Perhaphs I should ari the requirement that all ptrace calls are routed through that. Would let us implement `set debug ptrace!'. Andrew