binutils-gdb/gdb/nat
Tom Tromey 463c08d160 Fix crash with -D_GLIBCXX_DEBUG
I noticed a buildbot failure where gdb crashed in info-os.exp, when
compiled with -D_GLIBCXX_DEBUG:

    (gdb) info os procgroups
    /usr/include/c++/7/bits/stl_algo.h:4834:
    Error: comparison doesn't meet irreflexive requirements, assert(!(a < a)).
    Objects involved in the operation:
	iterator::value_type "< operator type" {
	  type = pid_pgid_entry;
	}

The bug here is that pid_pgid_entry::operator< violates the C++
irreflexivity rule; that is, that an object cannot be less than
itself.

Tested locally by re-running info-os.exp.

gdb/ChangeLog
2018-07-30  Tom Tromey  <tom@tromey.com>

	* nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
	irreflexivity violation.
2018-07-30 08:33:26 -06:00
..
aarch64-linux-hw-point.c Remove ptid_get_lwp 2018-07-03 11:36:43 -06:00
aarch64-linux-hw-point.h
aarch64-linux.c Remove ptid_get_lwp 2018-07-03 11:36:43 -06:00
aarch64-linux.h
aarch64-sve-linux-ptrace.c Remove some unused variables 2018-07-22 23:23:11 -04:00
aarch64-sve-linux-ptrace.h Fix up HAS_SVE_STATE macro 2018-06-22 12:01:18 +01:00
aarch64-sve-linux-sigcontext.h Add Aarch64 SVE compatibility macros 2018-06-18 10:02:56 +01:00
amd64-linux-siginfo.c
amd64-linux-siginfo.h
fork-inferior.c Remove pid_to_ptid 2018-07-03 11:36:42 -06:00
fork-inferior.h
gdb_ptrace.h
gdb_thread_db.h
glibc_thread_db.h
linux-btrace.c Remove ptid_get_lwp 2018-07-03 11:36:43 -06:00
linux-btrace.h
linux-namespaces.c
linux-namespaces.h
linux-nat.h
linux-osdata.c Fix crash with -D_GLIBCXX_DEBUG 2018-07-30 08:33:26 -06:00
linux-osdata.h
linux-personality.c
linux-personality.h
linux-procfs.c Warn if /proc is not accessible 2018-07-04 16:13:29 +01:00
linux-procfs.h Warn if /proc is not accessible 2018-07-04 16:13:29 +01:00
linux-ptrace.c
linux-ptrace.h Fix Alpha native GDB build 2018-05-31 11:18:35 -04:00
linux-waitpid.c
linux-waitpid.h
mips-linux-watch.c
mips-linux-watch.h
ppc-linux.c [PowerPC] Consolidate wordsize getter between native and gdbserver 2018-05-22 11:52:02 -03:00
ppc-linux.h [PowerPC] Consolidate wordsize getter between native and gdbserver 2018-05-22 11:52:02 -03:00
x86-cpuid.h
x86-dregs.c
x86-dregs.h
x86-gcc-cpuid.h
x86-linux-dregs.c Remove ptid_lwp_p 2018-07-03 11:36:45 -06:00
x86-linux-dregs.h
x86-linux.c
x86-linux.h