inf_ptrace_target::close ();
}
-/* Implement the "attach" target method. */
-
-void
-fbsd_nat_target::attach (const char *args, int from_tty)
-{
- inf_ptrace_target::attach (args, from_tty);
-
- /* Curiously, the core does not do this automatically. */
- if (target_can_async_p ())
- target_async (1);
-}
-
-
#ifdef TDP_RFPPWAIT
/*
To catch fork events, PT_FOLLOW_FORK is set on every traced process
thread_control_capabilities get_thread_control_capabilities () override
{ return tc_schedlock; }
- void attach (const char *, int) override;
-
void create_inferior (const char *, const std::string &,
char **, int) override;
thread_state_string (thread->state));
}
+ /* Enable async mode if it is supported by the target. */
+ if (target_can_async_p ())
+ target_async (1);
+
/* Set up the "saved terminal modes" of the inferior
based on what modes we are starting it with. */
target_terminal::init ();
threads and associate pthread info with each LWP. */
linux_proc_attach_tgid_threads (lp->ptid.pid (),
attach_proc_task_lwp_callback);
-
- if (target_can_async_p ())
- target_async (1);
}
/* Ptrace-detach the thread with pid PID. */
= remote_notif_parse (this, ¬if_client_stop, wait_status);
push_stop_reply ((struct stop_reply *) reply);
-
- if (target_can_async_p ())
- target_async (1);
}
else
{
gdb_assert (wait_status == NULL);
gdb_assert (target_can_async_p ());
- target_async (1);
}
}