[RFC] GDB ARIndex Linux rule cleanup
Eli Zaretskii
eliz@gnu.org
Wed Apr 15 15:15:00 GMT 2009
> Date: Wed, 15 Apr 2009 16:00:39 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
> Cc: brobecker@adacore.com ('Joel Brobecker'), gdb-patches@sourceware.org,
> gdb@sourceware.org, eliz@gnu.org ('Eli Zaretskii')
>
> Pierre Muller wrote:
>
> > Index: ppc-linux-tdep.c
> > ===================================================================
>
> > -/* Wrappers to handle Linux-only registers. */
> > +/* Wrappers to handle Linux-only kernel registers. */
>
> > - /* Initialize the Linux target descriptions. */
> > + /* Initialize the Linux kernel target descriptions. */
>
> > Index: ppc-linux-tdep.h
> > ===================================================================
>
> > -/* Linux target descriptions. */
> > +/* Linux kernel target descriptions. */
>
>
> It seems to me that in *those* cases, we should actually use
> GNU/Linux instead -- this is talking about GDB target support
> for the GNU/Linux operating system on PowerPC, and not specifically
> related to the kernel only (for example, those target descriptions
> are also used when analysing a core file on a remote system).
I think GDB's "target" is always the OS kernel, not the OS itself.
The distinction FSF asks for is between the GNU/Linux as a whole
system, which includes all the main applications and libraries, and
Linux as the bare-bones OS. GDB targets the latter, not the former.
> Compare for example the usage in linux-nat.c:
>
> /* Create a prototype generic GNU/Linux target.
That's a mistake, IMO. There's no need for GNU here.
More information about the Gdb
mailing list