Fix PR gdb/378.
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>
/* 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)
# 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
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. */
-/* 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.
\f
-/* 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.
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. */
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. */
/* 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.)
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,
}
\f
-/* The instruction for a Linux system call is:
+/* The instruction for a GNU/Linux system call is:
int $0x80
or 0xcd 0x80. */
}
\f
-/* 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 =
{
-/* 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.
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. */
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. */
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,
}
\f
-/* 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 =
{
-/* 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.
-/* Native-dependent code for Linux/x86-64.
+/* Native-dependent code for GNU/Linux x86-64.
Copyright 2001, 2002 Free Software Foundation, Inc.
}
\f
-/* 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)
{
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. */
{
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. */
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,
}
}
-/* 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 */
-/* 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.
/* 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)
{
/* 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)