This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] GDB ARIndex Linux rule cleanup


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]