aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/ChangeLog
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/gdbserver/ChangeLog
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/gdbserver/ChangeLog')
-rw-r--r--gdb/gdbserver/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index e82e901..1618e2c 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2019-04-09 Tom Tromey <tromey@adacore.com>
+
+ * linux-low.c (select_event_lwp): Use find_thread_in_random.
+
2019-04-08 Tom Tromey <tom@tromey.com>
* linux-low.c (linux_detach_one_lwp): Replace throw_exception with