The following patch adds support for -target-attach. It essentially copies the code from target.c but removes the query in the case where target execution is already in progress and simply performs the target_kill. I also changed the output message to issue ^attached, .... as requested. Eli, there is a documentation change in the mi portions of the manual. Approval to commit? -- Jeff J. gdb/mi/ChangeLog 2002-10-17 Jeff Johnston * gdbmi.texinfo (-target-attach): Add example. * mi-main.c (mi_cmd_target_attach): New command. * mi-cmds.h (mi_cmd_target_attach): New prototype.