Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: cagney@gnu.org
Cc: mec.gnu@mindspring.com, gdb@sources.redhat.com
Subject: Re: ptrace(2) autoconf tests
Date: Mon, 09 Aug 2004 15:34:00 -0000	[thread overview]
Message-ID: <200408091534.i79FYdLr000777@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <4117778B.9020506@gnu.org> (message from Andrew Cagney on Mon, 09 Aug 2004 09:09:31 -0400)

   Date: Mon, 09 Aug 2004 09:09:31 -0400
   From: Andrew Cagney <cagney@gnu.org>

   > 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.

Well, I'm trying to get some consistency.  But having autoconf set
PTRACE_LONG and then define PTRACE_XFER_TYPE based on that, is a bit
silly.  I'll adjust the test and have it set PTRACE_TYPE_RETURN such
that we can use the last one in our code.

   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!'.

Is that a worthwhile thing to have?  Well, I guess so.  One of things
I'm working on, is a portable "gdb_ptrace.h".  We could simply add a
macro there that takes care of the conversion.

Anyway, given the favourable response, I think I'll just go ahead with
this.

Mark


  reply	other threads:[~2004-08-09 15:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-08 21:00 Mark Kettenis
2004-08-08 21:42 ` Michael Chastain
2004-08-09  0:46   ` Mark Kettenis
2004-08-09  7:19     ` Michael Chastain
2004-08-09 13:09     ` Andrew Cagney
2004-08-09 15:34       ` Mark Kettenis [this message]
2004-08-09 15:53         ` Andrew Cagney
2004-08-09  5:37 ` Joel Brobecker
2004-08-09 21:52   ` Mark Kettenis
2004-08-10  5:49     ` Joel Brobecker
2004-08-10  6:56       ` Michael Chastain
2004-08-10  7:20         ` Marcel Moolenaar
2004-08-10 14:45           ` John David Anglin
2004-08-10 18:52             ` Joel Brobecker
2004-08-11  2:16               ` John David Anglin
2004-08-10 19:03     ` Joel Brobecker
     [not found] <no.id>
2004-08-11  2:55 ` John David Anglin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408091534.i79FYdLr000777@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=cagney@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=mec.gnu@mindspring.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox