diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2016-08-30 17:03:55 +0200 |
---|---|---|
committer | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2016-08-30 17:03:55 +0200 |
commit | 5af962df4dda65216b83d0a954ea355296517f4b (patch) | |
tree | 17190557687e9dadf89779e91f74d8c884ccbd88 /gdb/testsuite/gdb.multi/tids.exp | |
parent | b2b383620e85d6611044a1d98869831074ccb2f2 (diff) | |
download | gdb-5af962df4dda65216b83d0a954ea355296517f4b.zip gdb-5af962df4dda65216b83d0a954ea355296517f4b.tar.gz gdb-5af962df4dda65216b83d0a954ea355296517f4b.tar.bz2 |
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".
Diffstat (limited to 'gdb/testsuite/gdb.multi/tids.exp')
-rw-r--r-- | gdb/testsuite/gdb.multi/tids.exp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.multi/tids.exp b/gdb/testsuite/gdb.multi/tids.exp index 5d8701e..12ce98a 100644 --- a/gdb/testsuite/gdb.multi/tids.exp +++ b/gdb/testsuite/gdb.multi/tids.exp @@ -224,6 +224,12 @@ with_test_prefix "two inferiors" { thr_apply_info_thr "1.1-2 2.2-3" \ "1.1 1.2 2.2 2.3" + # All threads. + thread_apply "all" \ + "2.3 2.2 2.1 1.3 1.2 1.1" + thread_apply "all -ascending" \ + "1.1 1.2 1.3 2.1 2.2 2.3" + # Now test using GDB convenience variables. gdb_test "p \$inf = 1" " = 1" |