Factor out in-stepping-range checks.
[deliverable/binutils-gdb.git] / gdb / thread.c
index 2a1d7239b3174a1013ff8a0765935d430303b85a..2eb506bb7c83af54cbfb1063e7d8189690724d29 100644 (file)
@@ -750,6 +750,13 @@ finish_thread_state_cleanup (void *arg)
   finish_thread_state (*ptid_p);
 }
 
+int
+pc_in_thread_step_range (CORE_ADDR pc, struct thread_info *thread)
+{
+  return (pc >= thread->control.step_range_start
+         && pc < thread->control.step_range_end);
+}
+
 /* Prints the list of threads and their details on UIOUT.
    This is a version of 'info_threads_command' suitable for
    use from MI.
This page took 0.024271 seconds and 4 git commands to generate.