aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-05-18 17:11:25 +0000
committerPedro Alves <palves@redhat.com>2009-05-18 17:11:25 +0000
commit4d062f1ad566bb7f0eaed761db36788a7e981a28 (patch)
treec3728bfd05040f58971c32702491a7f2811558b1 /gdb/linux-nat.h
parentd90e17a74d28db7b3632eced357327ce2fb14f01 (diff)
downloadgdb-4d062f1ad566bb7f0eaed761db36788a7e981a28.zip
gdb-4d062f1ad566bb7f0eaed761db36788a7e981a28.tar.gz
gdb-4d062f1ad566bb7f0eaed761db36788a7e981a28.tar.bz2
* linux-nat.h (linux_proc_get_tgid): Declare.
* linux-nat.c (linux_proc_get_tgid): New. * linux-thread-db.c (struct thread_db_info): New field `need_stale_parent_threads_check'. (add_thread_db_info): Set it. (find_new_threads_callback): Ignore stale fork parent threads. (thread_db_resume): New. (init_thread_db_ops): Install thread_db_resume.
Diffstat (limited to 'gdb/linux-nat.h')
-rw-r--r--gdb/linux-nat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h
index 5c17425..d1ed6fc 100644
--- a/gdb/linux-nat.h
+++ b/gdb/linux-nat.h
@@ -99,6 +99,10 @@ int thread_db_attach_lwp (ptid_t ptid);
/* Find process PID's pending signal set from /proc/pid/status. */
void linux_proc_pending_signals (int pid, sigset_t *pending, sigset_t *blocked, sigset_t *ignored);
+/* Return the TGID of LWPID from /proc/pid/status. Returns -1 if not
+ found. */
+extern int linux_proc_get_tgid (int lwpid);
+
/* linux-nat functions for handling fork events. */
extern void linux_enable_event_reporting (ptid_t ptid);