From 466938cba9d5fb98603b58408cab635225aa647c Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Mon, 14 Mar 2016 16:19:34 +0000 Subject: Update devel/gdb to 7.11 which includes new thread support implemented by jhb. Special thanks to jhb for the amazing work on gdb! PR: 207972 Submitted by: luca.pizzamiglio@gmail.com (maintainer) --- devel/gdb/files/patch-gdb-fbsd-nat.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 devel/gdb/files/patch-gdb-fbsd-nat.c (limited to 'devel/gdb/files/patch-gdb-fbsd-nat.c') diff --git a/devel/gdb/files/patch-gdb-fbsd-nat.c b/devel/gdb/files/patch-gdb-fbsd-nat.c new file mode 100644 index 000000000000..07a224e09d09 --- /dev/null +++ b/devel/gdb/files/patch-gdb-fbsd-nat.c @@ -0,0 +1,17 @@ +--- gdb/fbsd-nat.c.orig 2016-03-14 00:00:11.831889802 +0100 ++++ gdb/fbsd-nat.c 2016-03-14 00:04:35.906871361 +0100 +@@ -471,6 +471,14 @@ + ptid_get_tid (ptid)); + if (ptid_lwp_p (ptid)) + { ++#ifndef PT_LWP_EVENTS ++ /* When LWP events are not supported, a new thread might already be ++ running that has not yet reported an event when GDB wishes to ++ only run a single thread. Force an update of the thread list ++ to ensure that any such threads are suspended before the process ++ is resumed. */ ++ fbsd_add_threads (ptid_get_pid (ptid)); ++#endif + /* If ptid is a specific LWP, suspend all other LWPs in the process. */ + iterate_over_threads (resume_one_thread_cb, &ptid); + } -- cgit v1.2.3