+2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
+
+ * win32-low.c (continue_one_thread): Return void, take argument
+ directly.
+ (child_continue): Use for_each_thread.
+
2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
* win32-i386-low.c (update_debug_registers_callback): Rename
/* Resume all artificially suspended threads if we are continuing
execution. */
-static int
-continue_one_thread (thread_info *thread, void *id_ptr)
+static void
+continue_one_thread (thread_info *thread, int thread_id)
{
- int thread_id = * (int *) id_ptr;
win32_thread_info *th = (win32_thread_info *) thread_target_data (thread);
if (thread_id == -1 || thread_id == th->tid)
th->suspended = 0;
}
}
-
- return 0;
}
static BOOL
{
/* The inferior will only continue after the ContinueDebugEvent
call. */
- find_inferior (&all_threads, continue_one_thread, &thread_id);
+ for_each_thread ([&] (thread_info *thread)
+ {
+ continue_one_thread (thread, thread_id);
+ });
faked_breakpoint = 0;
if (!ContinueDebugEvent (current_event.dwProcessId,