Permalink
Browse files

In the revert-to-stepping-thread logic, SSS targets could go astray.

The stepped thread might have already reached its destination, but not
have reported it yet.  If we just kept going, we could end up
overstepping.
  • Loading branch information...
1 parent 39902f9 commit b6b55ba610f8db5d89ec7405c93013a10d9a1c20 @palves committed Oct 8, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 gdb/infrun.c
View
@@ -5338,8 +5338,10 @@ switch_back_to_stepped_thread (struct execution_control_state *ecs)
ecs->event_thread = tp;
ecs->ptid = tp->ptid;
context_switch (ecs->ptid);
- keep_going (ecs);
- return 1;
+
+ /* Keep checking. The stepped thread might have already
+ reached its destination, but not have reported it yet.
+ If we just kept going, we could end up overstepping. */
}
}
return 0;

0 comments on commit b6b55ba

Please sign in to comment.