src/MICmdCmdTarget.cpp
bool CMICmdCmdTargetDetach::Execute() {
  CMICmnLLDBDebugSessionInfo &rSessionInfo(
      CMICmnLLDBDebugSessionInfo::Instance());

  lldb::SBProcess process = rSessionInfo.GetProcess();

  if (!process.IsValid()) {
    SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_INVALID_PROCESS),
                                   m_cmdData.strMiCmd.c_str()));
    return MIstatus::failure;
  }

  process.Detach();

  return MIstatus::success;
}
//++
// Details: The invoker requires this function. The command does work in this
// function.
//          The command is likely to communicate with the LLDB SBDebugger in
//          here.
//          Synopsis: -target-attach file
//          Ref:
//          http://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Target-Manipulation.html#GDB_002fMI-Target-Manipulation
// Type:    Overridden.
// Args:    None.
// Return:  MIstatus::success - Functional succeeded.
//          MIstatus::failure - Functional failed.
// Throws:  None.
//--
The invoker requires this function. The command does work in this
function.
The command is likely to communicate with the LLDB SBDebugger in
here.
The invoker requires this function . The command does work in this function . The command is likely to communicate with the LLDB SBDebugger in here .
bool CMICmdCmdTargetDetach::Execute() {
  CMICmnLLDBDebugSessionInfo &rSessionInfo(
      CMICmnLLDBDebugSessionInfo::Instance());
  lldb::SBProcess process = rSessionInfo.GetProcess();
  if (!process.IsValid()) {
    SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_INVALID_PROCESS),
                                   m_cmdData.strMiCmd.c_str()));
    return MIstatus::failure;
  }
  process.Detach();
  return MIstatus::success;
}
bool CMICmdCmdTargetDetach :: Execute ( ) { CMICmnLLDBDebugSessionInfo & rSessionInfo ( CMICmnLLDBDebugSessionInfo :: Instance ( ) ) ; lldb :: SBProcess process = rSessionInfo . GetProcess ( ) ; if ( ! process . IsValid ( ) ) { SetError ( CMIUtilString :: Format ( MIRSRC ( IDS_CMD_ERR_INVALID_PROCESS ) , m_cmdData . strMiCmd . c_str ( ) ) ) ; return MIstatus :: failure ; } process . Detach ( ) ; return MIstatus :: success ; }
++
Details: The invoker requires this function.
++ Details : The invoker requires this function .