This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug threads/19471] unexpected stop in multi-inferior debugging


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]