diff options
author | Doug Evans <dje@google.com> | 2010-02-13 01:13:54 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-02-13 01:13:54 +0000 |
commit | 6076632b700e20fbb180fd582ed892ed3d0c2d91 (patch) | |
tree | 321a3ccc1f22f9b550cd084f8604293acc4f579f /gdb | |
parent | 0da6fa6c5b5a2b4fc5b64fbae25ccd9509210860 (diff) | |
download | gdb-6076632b700e20fbb180fd582ed892ed3d0c2d91.zip gdb-6076632b700e20fbb180fd582ed892ed3d0c2d91.tar.gz gdb-6076632b700e20fbb180fd582ed892ed3d0c2d91.tar.bz2 |
* linux-low.c (linux_supports_tracefork_flag): Document.
(linux_look_up_symbols): Add comment.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index ac6af76..fb968eb 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 12c40bc..262a1df 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -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 } |