#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
-#if HAVE_MALLOC_H
-#include <malloc.h>
-#endif
ptid_t cont_thread;
ptid_t general_thread;
if (wrapper_argv != NULL)
{
struct thread_resume resume_info;
- ptid_t ptid;
resume_info.thread = pid_to_ptid (signal_pid);
resume_info.kind = resume_continue;
resume_info.sig = 0;
- ptid = mywait (pid_to_ptid (signal_pid), &last_status, 0, 0);
+ mywait (pid_to_ptid (signal_pid), &last_status, 0, 0);
if (last_status.kind != TARGET_WAITKIND_STOPPED)
return signal_pid;
if (ret == 0)
{
ret = read_inferior_memory (memaddr, myaddr, len);
- unprepare_to_access_memory ();
+ done_accessing_memory ();
}
return ret;
if (ret == 0)
{
ret = write_inferior_memory (memaddr, myaddr, len);
- unprepare_to_access_memory ();
+ done_accessing_memory ();
}
return ret;
}
manage the thread's last_status field. */
if (the_target->thread_stopped == NULL)
{
- struct target_waitstatus status;
-
- status.kind = TARGET_WAITKIND_STOPPED;
- status.value.sig = TARGET_SIGNAL_TRAP;
-
/* Pass the last stop reply back to GDB, but don't notify
yet. */
queue_stop_reply (entry->id, &thread->last_status);