aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-04-04 16:57:11 -0600
committerTom Tromey <tromey@adacore.com>2019-04-09 12:03:25 -0600
commitb0319eaaf9d1f4e730c532058f2fff0b4e5ce682 (patch)
tree5232bf0ddc163b3a58e536e74f514c1c7f574f92 /gdb/remote-sim.c
parent9ab8741a48294e19d514721c710c81bba46db7f2 (diff)
downloadgdb-b0319eaaf9d1f4e730c532058f2fff0b4e5ce682.zip
gdb-b0319eaaf9d1f4e730c532058f2fff0b4e5ce682.tar.gz
gdb-b0319eaaf9d1f4e730c532058f2fff0b4e5ce682.tar.bz2
Use find_thread_in_random in select_event_lwp
I noticed that find_thread_in_random duplicates the code in find_thread_in_random, so this patch changes the latter to use the former. There are two other spots in gdb that do this, but to unify all of them would require switching some code from using the "iterate over" idiom to using iterators. Another possible improvement is that find_thread_in_random could be made single-pass using reservoir sampling. Tested by the buildbot. gdb/gdbserver/ChangeLog 2019-04-09 Tom Tromey <tromey@adacore.com> * linux-low.c (select_event_lwp): Use find_thread_in_random.
Diffstat (limited to 'gdb/remote-sim.c')
0 files changed, 0 insertions, 0 deletions