mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 21:03:55 +08:00
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:
@ -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. */
|
||||
|
Reference in New Issue
Block a user