binutils-gdb/gdb/common
Pedro Alves 9a2c3737b0 Clean up ptid.h/ptid.c.
The ptid_t contructors, accessors and predicates are documented in
_three_ places, and each place uses a different wording.

E.g, the descriptions in the .c file of the new ptid_lwp_p, ptid_tid_p
weren't updated in the final revision like the descriptions in the .h
file were.  Clearly, switching to a style that has a single central
description avoids such issues.

Worse, some of the existing descriptions are plain wrong, such as:

  /* Attempt to find and return an existing ptid with the given PID, LWP,
     and TID components.  If none exists, create a new one and return
     that.  */
  ptid_t ptid_build (int pid, long lwp, long tid);

The function does nothing that complicated.  It's just a simple
constructor.

So this gets rid of all the unnecessary descriptions, leaving only the
ones near the function declarations in the header file, and
fixes/clarifies those that remain.

gdb/
2013-10-04  Pedro Alves  <palves@redhat.com>

	* common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
	(pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
	(ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
	describing comments with references to ptid.h.
	* common/ptid.h: Remove intro description of constructors,
	accessors and predicates.
	(struct ptid): Reformat.
	(minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
	(ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
	describing comments.
2013-10-04 10:04:14 +00:00
..
agent.c PR gdb/7912: 2013-04-22 16:46:15 +00:00
agent.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
ax.def Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
break-common.h gdb/ 2013-07-27 07:11:46 +00:00
btrace-common.h Add branch trace information to struct thread_info. 2013-03-11 08:17:08 +00:00
buffer.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
buffer.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
common-utils.c Move savestring to common/common-utils.c, make gdbserver use it. 2013-02-14 17:11:41 +00:00
common-utils.h Move savestring to common/common-utils.c, make gdbserver use it. 2013-02-14 17:11:41 +00:00
create-version.sh gdb/ 2013-07-04 01:22:38 +00:00
filestuff.c * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e" 2013-09-14 06:26:35 +00:00
filestuff.h 2013-05-10 Joel Brobecker <brobecker@adacore.com> 2013-05-10 17:01:00 +00:00
format.c Handle '#' flag for printf of pointer types. 2013-08-13 16:05:23 +00:00
format.h * ada-lang.c (ada_read_renaming_var_value): Pass const 2013-03-12 17:39:45 +00:00
gdb_assert.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
gdb_dirent.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
gdb_locale.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
gdb_signals.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
gdb_stat.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
gdb_string.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
gdb_thread_db.h Move fallback thread_db.h to a separate file. 2013-04-16 18:14:55 +00:00
gdb_vecs.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
gdb_vecs.h gdb/ 2013-06-26 08:01:57 +00:00
gdb_wait.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
glibc_thread_db.h Update glibc_thread_db.h from upstream. 2013-04-16 18:17:11 +00:00
host-defs.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
i386-cpuid.h gdb: clean up x86 cpuid implementations 2013-06-19 22:29:36 +00:00
i386-gcc-cpuid.h gdb: clean up x86 cpuid implementations 2013-06-19 22:29:36 +00:00
i386-xstate.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
linux-btrace.c gdb: btrace: fix build errors on older glibc builds 2013-09-29 03:57:34 +00:00
linux-btrace.h Implement branch tracing on Linux based on perf_event such that it can be shared 2013-03-11 08:24:07 +00:00
linux-osdata.c PR gdb/7912: 2013-04-22 16:46:15 +00:00
linux-osdata.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
linux-procfs.c PR gdb/7912: 2013-04-22 16:46:15 +00:00
linux-procfs.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
linux-ptrace.c Always run the PTRACE_O_TRACESYSGOOD tests even if PTRACE_O_TRACEFORK is not supported. 2013-10-03 10:13:34 +00:00
linux-ptrace.h Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
mips-linux-watch.c gdb/ 2013-07-27 07:49:05 +00:00
mips-linux-watch.h gdb/ 2013-07-27 07:49:05 +00:00
ptid.c Clean up ptid.h/ptid.c. 2013-10-04 10:04:14 +00:00
ptid.h Clean up ptid.h/ptid.c. 2013-10-04 10:04:14 +00:00
queue.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
signals.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
vec.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
vec.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
version.h don't keep a gdb-specific date 2013-06-24 15:06:27 +00:00
xml-utils.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
xml-utils.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00