aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-11-20 17:32:33 -0800
committerDoug Evans <dje@google.com>2013-11-20 17:32:33 -0800
commitebcf782c74daac92736b4c70098d36b0bc084417 (patch)
tree732cd96349346763b5a9384c911d79ea249e18b1
parent20ad937816bc70bd55af8ce2c1bc7d95933e4698 (diff)
downloadgdb-ebcf782c74daac92736b4c70098d36b0bc084417.zip
gdb-ebcf782c74daac92736b4c70098d36b0bc084417.tar.gz
gdb-ebcf782c74daac92736b4c70098d36b0bc084417.tar.bz2
* linux-low.c (linux_set_resume_request): Fix comment.
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/linux-low.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 6e607ed..eb6f284 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,9 @@
2013-11-20 Doug Evans <dje@google.com>
+ * linux-low.c (linux_set_resume_request): Fix comment.
+
+2013-11-20 Doug Evans <dje@google.com>
+
* linux-low.c (resume_status_pending_p): Tweak comment.
2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index f2b6e0a..770ee16 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -3298,13 +3298,15 @@ struct thread_resume_array
size_t n;
};
-/* This function is called once per thread. We look up the thread
- in RESUME_PTR, and mark the thread with a pointer to the appropriate
- resume request.
+/* This function is called once per thread via find_inferior.
+ ARG is a pointer to a thread_resume_array struct.
+ We look up the thread specified by ENTRY in ARG, and mark the thread
+ with a pointer to the appropriate resume request.
This algorithm is O(threads * resume elements), but resume elements
is small (and will remain small at least until GDB supports thread
suspension). */
+
static int
linux_set_resume_request (struct inferior_list_entry *entry, void *arg)
{