This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] GDB ARIndex Linux rule cleanup
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb at sourceware dot org
- Cc: "Ulrich Weigand" <uweigand at de dot ibm dot com>, gdb-patches at sourceware dot org, Pierre Muller <muller at ics dot u-strasbg dot fr>, "'Joel Brobecker'" <brobecker at adacore dot com>, "'Eli Zaretskii'" <eliz at gnu dot org>
- Date: Wed, 15 Apr 2009 16:53:57 +0100
- Subject: Re: [RFC] GDB ARIndex Linux rule cleanup
- References: <200904151532.n3FFWGaT005240@d12av02.megacenter.de.ibm.com>
On Wednesday 15 April 2009 16:32:16, Ulrich Weigand wrote:
> > /* Create a prototype generic GNU/Linux target.=20=20
> Pedro wrote:
> > I'm of the oposite opinion. ?I consider *this* a bug. ?This
> > file (linux-nat.c) concerns about abstracting of ptrace and /proc
> > interfaces, which are kernel defined interfaces.
>
> 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.
--
Pedro Alves