* linux-low.c (linux_supports_tracefork_flag): Document.
authorDoug Evans <dje@google.com>
Sat, 13 Feb 2010 01:13:54 +0000 (01:13 +0000)
committerDoug Evans <dje@google.com>
Sat, 13 Feb 2010 01:13:54 +0000 (01:13 +0000)
(linux_look_up_symbols): Add comment.

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

index ac6af76a736ca6c38ee86b8f809ca099c734494e..fb968ebe0da2b8d534a5329f647f630cd5cc69f8 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-12  Doug Evans  <dje@google.com>
+
+       * linux-low.c (linux_supports_tracefork_flag): Document.
+       (linux_look_up_symbols): Add comment.
+
 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
 
        * regcache.c (supply_register): Clear regcache if buf is NULL.
index 12c40bc4c8c7bf4aa60e0f4487de64ddab70dbd4..262a1df15d715bfdf11a09a0fb30f9831c91041c 100644 (file)
@@ -2580,6 +2580,7 @@ linux_write_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len)
   return 0;
 }
 
+/* Non-zero if the kernel supports PTRACE_O_TRACEFORK.  */
 static int linux_supports_tracefork_flag;
 
 /* Helper functions for linux_test_for_tracefork, called via clone ().  */
@@ -2735,6 +2736,9 @@ linux_look_up_symbols (void)
   if (proc->private->thread_db != NULL)
     return;
 
+  /* If the kernel supports tracing forks then it also supports tracing
+     clones, and then we don't need to use the magic thread event breakpoint
+     to learn about threads.  */
   thread_db_init (!linux_supports_tracefork_flag);
 #endif
 }