This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Linux vocab. fixes
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 20 Nov 2006 16:52:05 -0500
- Subject: [commit] Linux vocab. fixes
Stumbled across these, fixed; also committing to branch.
Index: ChangeLog
2006-11-20 Andrew Cagney <cagney@redhat.com>
* linux-nat.h: Refer to GNU/Linux or Linux kernel.
* linux-nat.c (lin_lwp_attach_lwp, linux_nat_thread_alive): Ditto.
* infcmd.c (attach_command): Ditto.
* hppa-linux-tdep.c (hppa_linux_regset): Ditto.
* mn10300-linux-tdep.c: Ditto. Update copyright year.
* frv-linux-tdep.c: Ditto. Update copyright year.
Index: frv-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/frv-linux-tdep.c,v
retrieving revision 1.10
diff -p -u -r1.10 frv-linux-tdep.c
--- frv-linux-tdep.c 15 Mar 2006 23:38:09 -0000 1.10
+++ frv-linux-tdep.c 20 Nov 2006 21:45:16 -0000
@@ -1,6 +1,7 @@
/* Target-dependent code for GNU/Linux running on the Fujitsu FR-V,
for GDB.
- Copyright (C) 2004 Free Software Foundation, Inc.
+
+ Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This file is part of GDB.
@@ -452,7 +453,7 @@ frv_linux_supply_fpregset (const struct
regcache_raw_supply (regcache, fsr0_regnum, fpregsetp->fsr[0]);
}
-/* FRV Linux register sets. */
+/* FRV Linux kernel register sets. */
static struct regset frv_linux_gregset =
{
Index: hppa-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-linux-tdep.c,v
retrieving revision 1.20
diff -p -u -r1.20 hppa-linux-tdep.c
--- hppa-linux-tdep.c 8 Aug 2006 21:32:37 -0000 1.20
+++ hppa-linux-tdep.c 20 Nov 2006 21:45:16 -0000
@@ -481,7 +481,7 @@ hppa_linux_supply_fpregset (const struct
}
}
-/* Linux register set. */
+/* HPPA Linux kernel register set. */
static struct regset hppa_linux_regset =
{
NULL,
Index: infcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/infcmd.c,v
retrieving revision 1.146
diff -p -u -r1.146 infcmd.c
--- infcmd.c 27 Oct 2006 22:23:20 -0000 1.146
+++ infcmd.c 20 Nov 2006 21:45:16 -0000
@@ -1857,8 +1857,8 @@ attach_command (char *args, int from_tty
/* Clear out solib state. Otherwise the solib state of the previous
inferior might have survived and is entirely wrong for the new
- target. This has been observed on Linux using glibc 2.3. How to
- reproduce:
+ target. This has been observed on GNU/Linux using glibc 2.3. How
+ to reproduce:
bash$ ./foo&
[1] 4711
Index: linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-nat.c,v
retrieving revision 1.50
diff -p -u -r1.50 linux-nat.c
--- linux-nat.c 16 Sep 2006 09:48:12 -0000 1.50
+++ linux-nat.c 20 Nov 2006 21:45:17 -0000
@@ -986,10 +986,10 @@ lin_lwp_attach_lwp (ptid_t ptid, int ver
{
/* We assume that the LWP representing the original process is
already stopped. Mark it as stopped in the data structure
- that the linux ptrace layer uses to keep track of threads.
- Note that this won't have already been done since the main
- thread will have, we assume, been stopped by an attach from a
- different layer. */
+ that the GNU/linux ptrace layer uses to keep track of
+ threads. Note that this won't have already been done since
+ the main thread will have, we assume, been stopped by an
+ attach from a different layer. */
lp->stopped = 1;
}
}
@@ -2396,11 +2396,11 @@ linux_nat_thread_alive (ptid_t ptid)
target_pid_to_str (ptid),
errno ? safe_strerror (errno) : "OK");
- /* Not every Linux target implements PTRACE_PEEKUSER.
- But we can handle that case gracefully since ptrace
- will first do a lookup for the process based upon the
- passed-in pid. If that fails we will get either -ESRCH
- or -EPERM, otherwise the child exists and is alive. */
+ /* Not every Linux kernel implements PTRACE_PEEKUSER. But we can
+ handle that case gracefully since ptrace will first do a lookup
+ for the process based upon the passed-in pid. If that fails we
+ will get either -ESRCH or -EPERM, otherwise the child exists and
+ is alive. */
if (errno == ESRCH || errno == EPERM)
return 0;
Index: linux-nat.h
===================================================================
RCS file: /cvs/src/src/gdb/linux-nat.h,v
retrieving revision 1.12
diff -p -u -r1.12 linux-nat.h
--- linux-nat.h 23 Jul 2006 21:21:01 -0000 1.12
+++ linux-nat.h 20 Nov 2006 21:45:17 -0000
@@ -85,11 +85,11 @@ struct lwp_info *iterate_over_lwps (int
void *),
void *data);
-/* Create a prototype generic Linux target. The client can override
- it with local methods. */
+/* Create a prototype generic GNU/Linux target. The client can
+ override it with local methods. */
struct target_ops * linux_target (void);
-/* Register the customized Linux target. This should be used
+/* Register the customized GNU/Linux target. This should be used
instead of calling add_target directly. */
void linux_nat_add_target (struct target_ops *);
Index: mn10300-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mn10300-linux-tdep.c,v
retrieving revision 1.5
diff -p -u -r1.5 mn10300-linux-tdep.c
--- mn10300-linux-tdep.c 28 Feb 2006 22:38:04 -0000 1.5
+++ mn10300-linux-tdep.c 20 Nov 2006 21:45:17 -0000
@@ -1,6 +1,6 @@
/* Target-dependent code for the Matsushita MN10300 for GDB, the GNU debugger.
- Copyright (C) 2003, 2004, 2005
- Free Software Foundation, Inc.
+
+ Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GDB.
@@ -704,7 +704,7 @@ am33_linux_sigframe_cache_init (const st
trad_frame_set_id (this_cache, frame_id_build (sc_base, func));
}
-/* AM33 Linux osabi has been recognized.
+/* AM33 GNU/Linux osabi has been recognized.
Now's our chance to register our corefile handling. */
static void