Fix order of inferiors in "thread apply all"
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 30 Aug 2016 15:03:55 +0000 (17:03 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 30 Aug 2016 15:03:55 +0000 (17:03 +0200)
commit5af962df4dda65216b83d0a954ea355296517f4b
tree17190557687e9dadf89779e91f74d8c884ccbd88
parentb2b383620e85d6611044a1d98869831074ccb2f2
Fix order of inferiors in "thread apply all"

This inserts missing parentheses in the calculation of the comparison
result between two different inferior numbers.  The problem was found by
Philipp Rudo.

gdb/ChangeLog:

* thread.c (tp_array_compar): Insert missing parentheses.

gdb/testsuite/ChangeLog:

* gdb.multi/tids.exp: Test "thread apply all".
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.multi/tids.exp
gdb/thread.c