mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
btrace, infrun: replay scheduler locking only depends on to-be-resumed thread
Similar to the parent commit, simplify schedlock_applies() by only checking the argument thread. When resuming that thread, GDB will automatically stop replaying its inferior. The replay state of other inferiors is not considered by user_visible_resume_ptid(), so let's not consider them in schedlock_applies(), either. Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
@@ -3200,8 +3200,7 @@ schedlock_applies (struct thread_info *tp)
|
|||||||
|| (scheduler_mode == schedlock_step
|
|| (scheduler_mode == schedlock_step
|
||||||
&& tp->control.stepping_command)
|
&& tp->control.stepping_command)
|
||||||
|| (scheduler_mode == schedlock_replay
|
|| (scheduler_mode == schedlock_replay
|
||||||
&& target_record_will_replay (minus_one_ptid,
|
&& target_record_will_replay (tp->ptid, execution_direction)));
|
||||||
execution_direction)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When FORCE_P is false, set process_stratum_target::COMMIT_RESUMED_STATE
|
/* When FORCE_P is false, set process_stratum_target::COMMIT_RESUMED_STATE
|
||||||
|
|||||||
Reference in New Issue
Block a user