aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-02-24 22:14:33 +0000
committerAndrew Cagney <cagney@redhat.com>2002-02-24 22:14:33 +0000
commita4b6fc86fa32d442efcbfb5c17549e4034d44552 (patch)
treea8bd4adafdf89572a89474d7bdbd46b4be03daf2 /gdb
parent8605d56e7a489870c1ac2167046a4f4dad8cc13d (diff)
downloadgdb-a4b6fc86fa32d442efcbfb5c17549e4034d44552.zip
gdb-a4b6fc86fa32d442efcbfb5c17549e4034d44552.tar.gz
gdb-a4b6fc86fa32d442efcbfb5c17549e4034d44552.tar.bz2
s/Linux/.../
Fix PR gdb/378.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gdb_wait.h12
-rw-r--r--gdb/gregset.h2
-rw-r--r--gdb/i386-linux-nat.c24
-rw-r--r--gdb/m68klinux-nat.c15
-rw-r--r--gdb/sparc-linux-nat.c5
-rw-r--r--gdb/x86-64-linux-nat.c14
-rw-r--r--gdb/x86-64-linux-tdep.c15
8 files changed, 49 insertions, 42 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0c85032..f11564c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,7 +1,9 @@
2002-02-24 Andrew Cagney <ac131313@redhat.com>
* lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
- with either ``GNU/Linux'' or ``Linux kernel''.
+ with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
+ * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
+ * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
Fix PR gdb/378.
2002-02-23 Andrew Cagney <ac131313@redhat.com>
diff --git a/gdb/gdb_wait.h b/gdb/gdb_wait.h
index 63a13d2..fec6f60 100644
--- a/gdb/gdb_wait.h
+++ b/gdb/gdb_wait.h
@@ -39,8 +39,8 @@
/* The following macros are defined equivalently to their definitions
in POSIX.1. We fail to define WNOHANG and WUNTRACED, which POSIX.1
<sys/wait.h> defines, since our code does not use waitpid() (but
- NOTE exception for Linux below).
- We also fail to declare wait() and waitpid(). */
+ NOTE exception for GNU/Linux below). We also fail to declare
+ wait() and waitpid(). */
#ifndef WIFEXITED
#define WIFEXITED(w) (((w)&0377) == 0)
@@ -101,11 +101,9 @@
# endif
#endif
-/*
- * For native Linux we may use waitpid and the __WCLONE option.
- * <GRIPE> It is of course dangerous not to use the REAL header file...
- * </GRIPE>
- */
+/* For native GNU/Linux we may use waitpid and the __WCLONE option.
+ <GRIPE> It is of course dangerous not to use the REAL header file...
+ </GRIPE>. */
/* Bits in the third argument to `waitpid'. */
#ifndef WNOHANG
diff --git a/gdb/gregset.h b/gdb/gregset.h
index 19eefec..a3a1325 100644
--- a/gdb/gregset.h
+++ b/gdb/gregset.h
@@ -37,7 +37,7 @@ typedef GDB_FPREGSET_T gdb_fpregset_t;
includes integer registers and control registers. An fpregset is a
data structure containing the floating point registers. These data
structures were originally a part of the /proc interface, but have
- been borrowed or copied by other GDB targets, eg. Linux. */
+ been borrowed or copied by other GDB targets, eg. GNU/Linux. */
/* Copy register values from the native target gregset/fpregset
into GDB's internal register cache. */
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index aa2fa65..a0d19e7 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -1,4 +1,5 @@
-/* Native-dependent code for Linux/x86.
+/* Native-dependent code for GNU/Linux x86.
+
Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -66,10 +67,10 @@ static void dummy_sse_values (void);
-/* The register sets used in Linux ELF core-dumps are identical to the
- register sets in `struct user' that is used for a.out core-dumps,
- and is also used by `ptrace'. The corresponding types are
- `elf_gregset_t' for the general-purpose registers (with
+/* The register sets used in GNU/Linux ELF core-dumps are identical to
+ the register sets in `struct user' that is used for a.out
+ core-dumps, and is also used by `ptrace'. The corresponding types
+ are `elf_gregset_t' for the general-purpose registers (with
`elf_greg_t' the type of a single GP register) and `elf_fpregset_t'
for the floating-point registers.
@@ -593,7 +594,7 @@ fetch_inferior_registers (int regno)
return;
}
- /* Linux LWP ID's are process ID's. */
+ /* GNU/Linux LWP ID's are process ID's. */
if ((tid = TIDGET (inferior_ptid)) == 0)
tid = PIDGET (inferior_ptid); /* Not a threaded program. */
@@ -659,7 +660,7 @@ store_inferior_registers (int regno)
return;
}
- /* Linux LWP ID's are process ID's. */
+ /* GNU/Linux LWP ID's are process ID's. */
if ((tid = TIDGET (inferior_ptid)) == 0)
tid = PIDGET (inferior_ptid); /* Not a threaded program. */
@@ -778,7 +779,7 @@ i386_linux_dr_get_status (void)
/* Provide registers to GDB from a core file.
(We can't use the generic version of this function in
- core-regset.c, because Linux has *three* different kinds of
+ core-regset.c, because GNU/Linux has *three* different kinds of
register set notes. core-regset.c would have to call
supply_fpxregset, which most platforms don't have.)
@@ -791,7 +792,7 @@ i386_linux_dr_get_status (void)
2 --- the floating-point register set, in elf_fpregset_t format
3 --- the extended floating-point register set, in elf_fpxregset_t format
- REG_ADDR isn't used on Linux. */
+ REG_ADDR isn't used on GNU/Linux. */
static void
fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
@@ -847,7 +848,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
}
-/* The instruction for a Linux system call is:
+/* The instruction for a GNU/Linux system call is:
int $0x80
or 0xcd 0x80. */
@@ -935,7 +936,8 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
}
-/* Register that we are able to handle Linux ELF core file formats. */
+/* Register that we are able to handle GNU/Linux ELF core file
+ formats. */
static struct core_fns linux_elf_core_fns =
{
diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c
index 75427e3..ffb5532 100644
--- a/gdb/m68klinux-nat.c
+++ b/gdb/m68klinux-nat.c
@@ -1,5 +1,7 @@
-/* Motorola m68k native support for Linux
- Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
+/* Motorola m68k native support for GNU/Linux.
+
+ Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation,
+ Inc.
This file is part of GDB.
@@ -445,7 +447,7 @@ fetch_inferior_registers (int regno)
return;
}
- /* Linux LWP ID's are process ID's. */
+ /* GNU/Linux LWP ID's are process ID's. */
if ((tid = TIDGET (inferior_ptid)) == 0)
tid = PIDGET (inferior_ptid); /* Not a threaded program. */
@@ -500,7 +502,7 @@ store_inferior_registers (int regno)
return;
}
- /* Linux LWP ID's are process ID's. */
+ /* GNU/Linux LWP ID's are process ID's. */
if ((tid = TIDGET (inferior_ptid)) == 0)
tid = PIDGET (inferior_ptid); /* Not a threaded program. */
@@ -546,7 +548,7 @@ store_inferior_registers (int regno)
0 --- the general-purpose register set, in elf_gregset_t format
2 --- the floating-point register set, in elf_fpregset_t format
- REG_ADDR isn't used on Linux. */
+ REG_ADDR isn't used on GNU/Linux. */
static void
fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
@@ -627,7 +629,8 @@ in_sigtramp (CORE_ADDR pc)
}
-/* Register that we are able to handle Linux ELF core file formats. */
+/* Register that we are able to handle GNU/Linux ELF core file
+ formats. */
static struct core_fns linux_elf_core_fns =
{
diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c
index eb1fcfa..ba418b6 100644
--- a/gdb/sparc-linux-nat.c
+++ b/gdb/sparc-linux-nat.c
@@ -1,5 +1,6 @@
-/* Native-dependent code for Linux/SPARC.
- Copyright 2001 Free Software Foundation, Inc.
+/* Native-dependent code for GNU/Linux SPARC.
+
+ Copyright 2001, 2002 Free Software Foundation, Inc.
This file is part of GDB.
diff --git a/gdb/x86-64-linux-nat.c b/gdb/x86-64-linux-nat.c
index eb63566..3fb24dd 100644
--- a/gdb/x86-64-linux-nat.c
+++ b/gdb/x86-64-linux-nat.c
@@ -1,4 +1,4 @@
-/* Native-dependent code for Linux/x86-64.
+/* Native-dependent code for GNU/Linux x86-64.
Copyright 2001, 2002 Free Software Foundation, Inc.
@@ -109,8 +109,8 @@ x86_64_linux_dr_get_status (void)
}
-/* The register sets used in Linux ELF core-dumps are identical to the
- register sets used by `ptrace'. */
+/* The register sets used in GNU/Linux ELF core-dumps are identical to
+ the register sets used by `ptrace'. */
#define GETREGS_SUPPLIES(regno) \
(0 <= (regno) && (regno) <= 17)
@@ -247,7 +247,7 @@ fetch_inferior_registers (int regno)
{
int tid;
- /* Linux LWP ID's are process ID's. */
+ /* GNU/Linux LWP ID's are process ID's. */
if ((tid = TIDGET (inferior_ptid)) == 0)
tid = PIDGET (inferior_ptid); /* Not a threaded program. */
@@ -282,7 +282,7 @@ store_inferior_registers (int regno)
{
int tid;
- /* Linux LWP ID's are process ID's. */
+ /* GNU/Linux LWP ID's are process ID's. */
if ((tid = TIDGET (inferior_ptid)) == 0)
tid = PIDGET (inferior_ptid); /* Not a threaded program. */
@@ -499,7 +499,7 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
0 --- the general-purpose register set, in elf_gregset_t format
2 --- the floating-point register set, in elf_fpregset_t format
- REG_ADDR isn't used on Linux. */
+ REG_ADDR isn't used on GNU/Linux. */
static void
fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
@@ -537,7 +537,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
}
}
-/* Register that we are able to handle Linux ELF core file formats. */
+/* Register that we are able to handle GNU/Linux ELF core file formats. */
static struct core_fns linux_elf_core_fns = {
bfd_target_elf_flavour, /* core_flavour */
diff --git a/gdb/x86-64-linux-tdep.c b/gdb/x86-64-linux-tdep.c
index e4df224..171ec9c 100644
--- a/gdb/x86-64-linux-tdep.c
+++ b/gdb/x86-64-linux-tdep.c
@@ -1,6 +1,7 @@
-/* Target-dependent code for Linux running on x86-64, for GDB.
- Copyright 2001
- Free Software Foundation, Inc.
+/* Target-dependent code for GNU/Linux running on x86-64, for GDB.
+
+ Copyright 2001 Free Software Foundation, Inc.
+
Contributed by Jiri Smid, SuSE Labs.
This file is part of GDB.
@@ -71,8 +72,8 @@ x86_64_linux_sigtramp_start (CORE_ADDR pc)
/* Offset to struct sigcontext in ucontext, from <asm/ucontext.h>. */
#define LINUX_UCONTEXT_SIGCONTEXT_OFFSET (36)
-/* Assuming FRAME is for a Linux sigtramp routine, return the address
- of the associated sigcontext structure. */
+/* Assuming FRAME is for a GNU/Linux sigtramp routine, return the
+ address of the associated sigcontext structure. */
CORE_ADDR
x86_64_linux_sigcontext_addr (struct frame_info *frame)
{
@@ -102,8 +103,8 @@ x86_64_linux_sigcontext_addr (struct frame_info *frame)
/* Offset to saved PC in sigcontext, from <asm/sigcontext.h>. */
#define LINUX_SIGCONTEXT_PC_OFFSET (136)
-/* Assuming FRAME is for a Linux sigtramp routine, return the saved
- program counter. */
+/* Assuming FRAME is for a GNU/Linux sigtramp routine, return the
+ saved program counter. */
CORE_ADDR
x86_64_linux_sigtramp_saved_pc (struct frame_info *frame)