Implement '-target-detach pid'.
* infcmd.c (detach_command): Make nonstatic. * inferior.h (detach_command): Declare. * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI. * mi/mi-cmds.h (mi_cmd_target_detach): Declare. * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
This commit is contained in:
parent
3d043ef6a3
commit
6418d433f1
6 changed files with 51 additions and 4 deletions
|
@ -86,8 +86,6 @@ static void unset_command (char *, int);
|
|||
|
||||
static void float_info (char *, int);
|
||||
|
||||
static void detach_command (char *, int);
|
||||
|
||||
static void disconnect_command (char *, int);
|
||||
|
||||
static void unset_environment_command (char *, int);
|
||||
|
@ -2344,7 +2342,7 @@ attach_command (char *args, int from_tty)
|
|||
* started via the normal ptrace (PTRACE_TRACEME).
|
||||
*/
|
||||
|
||||
static void
|
||||
void
|
||||
detach_command (char *args, int from_tty)
|
||||
{
|
||||
dont_repeat (); /* Not for the faint of heart. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue