Changeset View
Changeset View
Standalone View
Standalone View
devel/gdb/files/patch-gdb_fbsd-nat.c
--- gdb/fbsd-nat.c.orig 2017-09-14 09:28:17 UTC | --- gdb/fbsd-nat.c.orig 2019-05-11 11:19:03.000000000 -0700 | ||||
+++ gdb/fbsd-nat.c | +++ gdb/fbsd-nat.c 2019-05-24 16:25:52.961523000 -0700 | ||||
@@ -1108,6 +1108,14 @@ fbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signo) | @@ -1178,6 +1178,14 @@ fbsd_nat_target::resume (ptid_t ptid, int step, enum g | ||||
struct thread_info *tp; | /* If ptid is a specific LWP, suspend all other LWPs in the process. */ | ||||
int request; | inferior *inf = find_inferior_ptid (ptid); | ||||
+#ifndef PT_LWP_EVENTS | +#ifndef PT_LWP_EVENTS | ||||
+ /* When LWP events are not supported, a new thread might already be | + /* When LWP events are not supported, a new thread might already be | ||||
+ running that has not yet reported an event when GDB wishes to | + running that has not yet reported an event when GDB wishes to | ||||
+ only run a single thread. Force an update of the thread list | + only run a single thread. Force an update of the thread list | ||||
+ to ensure that any such threads are suspended before the process | + to ensure that any such threads are suspended before the process | ||||
+ is resumed. */ | + is resumed. */ | ||||
+ fbsd_add_threads (ptid_get_pid (ptid)); | + fbsd_add_threads (ptid.pid ()); | ||||
+#endif | +#endif | ||||
ALL_NON_EXITED_THREADS (tp) | for (thread_info *tp : inf->non_exited_threads ()) | ||||
{ | { | ||||
if (tp->ptid.pid () != ptid.pid ()) | int request; |