diff options
author | Guinevere Larsen <blarsen@redhat.com> | 2024-03-11 10:57:31 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-03-11 10:57:31 +0100 |
commit | b95b92ec093cea8014e33fdca2f800c4e5ce91be (patch) | |
tree | acf77077d21396da0beff42a11fdf5505ce4cb01 /libbacktrace | |
parent | 72ab7ac8be993e29f8a393b72dc681d627b12d19 (diff) | |
download | binutils-b95b92ec093cea8014e33fdca2f800c4e5ce91be.zip binutils-b95b92ec093cea8014e33fdca2f800c4e5ce91be.tar.gz binutils-b95b92ec093cea8014e33fdca2f800c4e5ce91be.tar.bz2 |
gdb/testsuite: Use _inferior_thread_count in gdb.threads/threadcrash.exp
A linaro PR [1] reports that the gdb.threads/threadcrash.exp test-case fails
to cout the number of threads in the inferior:
...
FAIL: gdb.threads/threadcrash.exp: test_gcore: $thread_count == 7
FAIL: gdb.threads/threadcrash.exp: test_gcore: $thread_count == [llength $test_list]
...
Fix this by getting the convenience variable _inferior_thread_count as opposed
to calculating it based on the output of "info threads".
Tested on arm-linux and x86_64-linux.
Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Approved-By: Tom de Vries <tdevries@suse.de>
[1] https://linaro.atlassian.net/browse/GNU-1120
Diffstat (limited to 'libbacktrace')
0 files changed, 0 insertions, 0 deletions