This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug threads/19471] unexpected stop in multi-inferior debugging
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 19 Aug 2017 18:03:22 +0000
- Subject: [Bug threads/19471] unexpected stop in multi-inferior debugging
- Auto-submitted: auto-generated
- References: <bug-19471-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19471
--- Comment #7 from Tom Tromey <tromey at sourceware dot org> ---
This seems to help:
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 4124318..bd91744 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -1557,6 +1557,9 @@ static void
linux_resume_one_lwp_throw (struct lwp_info *lp, int step,
enum gdb_signal signo)
{
+ if (!lwp_is_stopped (lp))
+ return;
+
lp->step = step;
/* stop_pc doubles as the PC the LWP had when it was last resumed.
--
You are receiving this mail because:
You are on the CC list for the bug.