From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18274 invoked by alias); 15 Apr 2009 15:54:08 -0000 Received: (qmail 18258 invoked by uid 22791); 15 Apr 2009 15:54:06 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Apr 2009 15:53:57 +0000 Received: (qmail 17163 invoked from network); 15 Apr 2009 15:53:55 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Apr 2009 15:53:55 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: [RFC] GDB ARIndex Linux rule cleanup Date: Wed, 15 Apr 2009 15:54:00 -0000 User-Agent: KMail/1.9.10 Cc: "Ulrich Weigand" , gdb-patches@sourceware.org, Pierre Muller , "'Joel Brobecker'" , "'Eli Zaretskii'" References: <200904151532.n3FFWGaT005240@d12av02.megacenter.de.ibm.com> In-Reply-To: <200904151532.n3FFWGaT005240@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200904151653.58077.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00316.txt.bz2 On Wednesday 15 April 2009 16:32:16, Ulrich Weigand wrote: > > /* Create a prototype generic GNU/Linux target.=3D20=3D20 > Pedro wrote: > > I'm of the oposite opinion. =A0I consider *this* a bug. =A0This > > file (linux-nat.c) concerns about abstracting of ptrace and /proc > > interfaces, which are kernel defined interfaces. >=20 > See my reply to Eli ... lots of target-specific information is *not* > related to the Linux kernel, but the platform ABI, libc, libpthread ... We're diverging a lot. None of that matters to linux-nat.c. The word "target" is seriously overloaded in GDB. It means different things depending on context. ABI specific details, platform abis, and libc issues are handled elsewhere... The "prototype generic target" that comment is refering to, is to the fact that this file is then inherited and specialized by an arch specific layer (i386-linux-nat.c, etc.)... Really, the ARI rule is only inventing work, because it have all the context humans do. Some artificial heuristic will only byte us from time to time for no good. I'd be surprised to hear that someone (a human) reading or hacking on GDB's code was confused by any of this. Anyway, I'm out of here. --=20 Pedro Alves