DEBUG_AGENT ("agent: resumed helper thread\n");
/* Resume helper thread. */
- target_continue_ptid (ptid);
+ target_continue_no_signal (ptid);
fd = gdb_connect_sync_socket (pid);
if (fd >= 0)
{
/* Stop thread PTID. */
DEBUG_AGENT ("agent: stop helper thread\n");
- target_stop_ptid (ptid);
+ target_stop_and_wait (ptid);
}
if (fd >= 0)