Implement '-target-detach pid'.
authorVladimir Prus <vladimir@codesourcery.com>
Mon, 17 Nov 2008 16:37:35 +0000 (16:37 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Mon, 17 Nov 2008 16:37:35 +0000 (16:37 +0000)
commit6418d433f1e12df96d34e5c95fe1fdd8a64bf9c0
treeb13bb3c318abb466bb106f52327d60081ceb5341
parent3d043ef6a32bab5eeaa0a4ea0532a2a7858e518e
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.
gdb/ChangeLog
gdb/infcmd.c
gdb/inferior.h
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-main.c