Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Add 'getthrds' declaration check in configure for AIX
Date: Wed, 16 Mar 2011 13:49:00 -0000	[thread overview]
Message-ID: <201103161144.26628.pedro@codesourcery.com> (raw)
In-Reply-To: <20110316014023.GO31264@adacore.com>

On Wednesday 16 March 2011 01:40:23, Joel Brobecker wrote:
> > > +# Older versions of AIX do not provide the declaration for the getthrds
> > > +# function (it appears that it was introduced with AIX 6.x).
> > > +AC_CHECK_DECLS(getthrds, [], [], [[#include <procinfo.h>]])
> > > +
> > 
> > Any reason this isn't done close to where we check for AIX
> > thread support, and decide to whether to build aix-thread.c in the
> > first place?  Look for "AiX thread debugging library" further down.
> 
> No specific reason, no. I placed the check there because it seemed
> to be the general area where we make cheks of this kind (checks for
> library functions, ptrace prototypes, etc).  But I'm happy to move
> it next to the AIX thread detection check.  We could even perform
> the check on AIX only, although I had the feeling that we usually
> this type of check regardless of the host (this is the case for
> the ptrace checks, for instance).

I just thought it made sense to keep the aix thread support
checks together, and that you might have missed the existing code.
If you want to keep them where you were putting them, it's fine
with me.

(I think the ptrace checks are where they are for both historical
reasons, and for the fact that the ptrace support is built by
several different hosts (inf-ptrace.c), with slightly different
ptrace implentations, and that nobody ever bothered to make them
run only on hosts that require them, and that are building the native
debugger backend.  Library functions used by common code need to be
checked in all hosts, of course.)

-- 
Pedro Alves


  reply	other threads:[~2011-03-16 11:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16  0:17 Joel Brobecker
2011-03-16  2:30 ` Pedro Alves
2011-03-16  4:48   ` Joel Brobecker
2011-03-16 13:49     ` Pedro Alves [this message]
2011-03-16 13:58       ` Joel Brobecker
2011-03-16 15:02         ` Pedro Alves
2011-03-17 14:58         ` Joel Brobecker

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=201103161144.26628.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /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