diff options
author | Pedro Alves <palves@redhat.com> | 2015-03-19 12:24:06 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-03-19 12:24:06 +0000 |
commit | b90fc18880972f0c2ed280df20604d89f1d4ec38 (patch) | |
tree | 8b5759eda30cfb771ae003433287f84d1c047e2c /gdb/gdbserver/linux-low.c | |
parent | e2575e05e73c3b2f08a8b5f579a504ac6a45ad60 (diff) | |
download | gdb-b90fc18880972f0c2ed280df20604d89f1d4ec38.zip gdb-b90fc18880972f0c2ed280df20604d89f1d4ec38.tar.gz gdb-b90fc18880972f0c2ed280df20604d89f1d4ec38.tar.bz2 |
select_event_lwp_callback: update comments
This function (in both GDB and GDBserver) used to consider only
SIGTRAP/breakpoint events, but that's no longer the case nowadays.
gdb/gdbserver/ChangeLog:
2015-03-19 Pedro Alves <palves@redhat.com>
* linux-low.c (select_event_lwp_callback): Update comments to
no longer mention SIGTRAP.
gdb/ChangeLog:
2015-03-19 Pedro Alves <palves@redhat.com>
* linux-nat.c (select_event_lwp_callback): Update comment to no
longer mention SIGTRAP.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 48d905b..9558f46 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -2267,8 +2267,7 @@ select_singlestep_lwp_callback (struct inferior_list_entry *entry, void *data) return 0; } -/* Select the Nth LWP that has had a SIGTRAP event that should be - reported to GDB. */ +/* Select the Nth LWP that has had an event. */ static int select_event_lwp_callback (struct inferior_list_entry *entry, void *data) @@ -2321,12 +2320,13 @@ select_event_lwp (struct lwp_info **orig_lp) if (event_thread == NULL) { /* No single-stepping LWP. Select one at random, out of those - which have had SIGTRAP events. */ + which have had events. */ - /* First see how many SIGTRAP events we have. */ + /* First see how many events we have. */ find_inferior (&all_threads, count_events_callback, &num_events); - /* Now randomly pick a LWP out of those that have had a SIGTRAP. */ + /* Now randomly pick a LWP out of those that have had + events. */ random_selector = (int) ((num_events * (double) rand ()) / (RAND_MAX + 1.0)); |