diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-17 16:37:35 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-17 16:37:35 +0000 |
commit | 6418d433f1e12df96d34e5c95fe1fdd8a64bf9c0 (patch) | |
tree | b13bb3c318abb466bb106f52327d60081ceb5341 /gdb/infcmd.c | |
parent | 3d043ef6a32bab5eeaa0a4ea0532a2a7858e518e (diff) | |
download | gdb-6418d433f1e12df96d34e5c95fe1fdd8a64bf9c0.zip gdb-6418d433f1e12df96d34e5c95fe1fdd8a64bf9c0.tar.gz gdb-6418d433f1e12df96d34e5c95fe1fdd8a64bf9c0.tar.bz2 |
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.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index b3af31f..810b3b7 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -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. */ |