diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/nat/linux-osdata.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2cd7d64..24ffeec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2018-07-30 Tom Tromey <tom@tromey.com> + * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix + irreflexivity violation. + +2018-07-30 Tom Tromey <tom@tromey.com> + * cli/cli-decode.c (lookup_cmd): Remove lint code. * value.c (unpack_long): Remove lint code. * valops.c (value_ind): Remove lint code. diff --git a/gdb/nat/linux-osdata.c b/gdb/nat/linux-osdata.c index 25e895d..2323dcc 100644 --- a/gdb/nat/linux-osdata.c +++ b/gdb/nat/linux-osdata.c @@ -415,9 +415,11 @@ struct pid_pgid_entry /* Process group leaders always come first... */ if (this->is_leader ()) - return true; - - if (other.is_leader ()) + { + if (!other.is_leader ()) + return true; + } + else if (other.is_leader ()) return false; /* ...else sort by PID. */ |