select_event_lwp_callback: update comments
authorPedro Alves <palves@redhat.com>
Thu, 19 Mar 2015 12:24:06 +0000 (12:24 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 19 Mar 2015 12:24:06 +0000 (12:24 +0000)
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.

gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
gdb/linux-nat.c

index 41080ae17af324ab83950d56c48740ea03fcca8c..45e50291fba48973c158eb6c86269f6b0be092e4 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-19  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (select_event_lwp_callback): Update comment to no
+       longer mention SIGTRAP.
+
 2015-03-18  Tristan Gingold  <gingold@adacore.com>
 
         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
index 7f009f1b33947f0739fbba516542f4e9553fdfce..6efab5b53d17e27e6dd733faa7a94fb2ed70f04a 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-19  Pedro Alves  <palves@redhat.com>
+
+       * linux-low.c (select_event_lwp_callback): Update comments to
+       no longer mention SIGTRAP.
+
 2015-03-18  Gary Benson  <gbenson@redhat.com>
 
        * server.c (handle_query): Do not report vFile:fstat as supported.
index 48d905b81b655835450f58ee84cef04e33b0da84..9558f46371664d5cd86a3ff8ed44b5229e70e867 100644 (file)
@@ -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));
 
index 22ce84207b0a8e8cbda9385de3aad6f80b390b7f..f5622ac3bbe6040289eee7d29a934415e05b403b 100644 (file)
@@ -2644,7 +2644,7 @@ lwp_status_pending_p (struct lwp_info *lp)
   return lp->status != 0 || lp->waitstatus.kind != TARGET_WAITKIND_IGNORE;
 }
 
-/* Select the Nth LWP that has had a SIGTRAP event.  */
+/* Select the Nth LWP that has had an event.  */
 
 static int
 select_event_lwp_callback (struct lwp_info *lp, void *data)
This page took 0.037682 seconds and 4 git commands to generate.