From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27016 invoked by alias); 20 Feb 2002 23:46:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26910 invoked from network); 20 Feb 2002 23:46:56 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 20 Feb 2002 23:46:56 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16dgRl-00029S-00; Wed, 20 Feb 2002 18:46:49 -0500 Date: Wed, 20 Feb 2002 15:46:00 -0000 From: Daniel Jacobowitz To: Elena Zannoni Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] ppc-linux-nat.c AltiVec regs ptrace Message-ID: <20020220184649.B7963@nevyn.them.org> Mail-Followup-To: Elena Zannoni , gdb-patches@sources.redhat.com References: <15476.1308.919907.110811@localhost.redhat.com> <20020220153946.A24439@nevyn.them.org> <15476.4080.303671.894065@localhost.redhat.com> <20020220171519.A28726@nevyn.them.org> <15476.11279.326712.932158@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15476.11279.326712.932158@localhost.redhat.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00573.txt.bz2 On Wed, Feb 20, 2002 at 06:06:55PM -0500, Elena Zannoni wrote: > Daniel Jacobowitz writes: > > I'm confused. > > Yeah, you are not the only one. > > > > > On i386, glibc defines PTRACE_GETFPXREGS. On PowerPC, in current FSF > > glibc, sys/ptrace.h does not define anything along these lines at all. > > OK, I have downloaded glibc 2.2.5, and sysdeps/unix/sysv/linux/sys/ptrace.h > defines PTRACE_GETFPXREGS. > > Then on my system, I have /usr/include/sys/ptrace.h which also defines it. > But I think I have an older version of glibc installed. > > What I am not understanding is where the installed file comes from, is > it the same as sysdeps/unix/sysv/linux/sys/ptrace.h? The way the glibc build process works is a mess. Every target has a list of sysdep directories. The first matching file is installed. In this case, it is sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h. When looking for a file in the glibc source, I recommend always getting a list of all files by that name first. > > If there are outstanding patches to glibc, which defines > > PTRACE_GETFPXREGS on PowerPC, then they are still mutable. They should > > be updated to a reasonable value. > > > > I think that rather than oustanding patches we may have older versions. > > I see that in glibc2.2.5 the file > sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h > doesn't use the values 18 and 19. > > If I determine that the version of glibc I have used is obsolete, then > I can clean that up. Let me have a look. Hopefully I've clarified this a little. And you seem to have found the file in question. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer