1 //===-- MICmdData.h ---------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
13 #include "MICmnResources.h"
15 //++ ============================================================================
16 // Details: MI command metadata. Holds the command's name, MI number and options
17 // as found on stdin. Holds the command's MI output (written to stdout).
19 // Authors: Illya Rudkin 18/02/2014.
27 , bCmdExecutedSuccessfully(false)
29 , bHasResultRecordExtra(false){};
31 MIuint id; // A command's unique ID i.e. GUID
32 CMIUtilString strMiCmdToken; // The command's MI token (a number)
33 CMIUtilString strMiCmd; // The command's name
34 CMIUtilString strMiCmdOption; // The command's arguments or options
35 CMIUtilString strMiCmdAll; // The text as received from the client
36 CMIUtilString strMiCmdResultRecord; // Each command forms 1 response to its input
37 CMIUtilString strMiCmdResultRecordExtra; // Hack command produce more response text to help the client because of using LLDB
38 bool bCmdValid; // True = Valid MI format command, false = invalid
39 bool bCmdExecutedSuccessfully; // True = Command finished successfully, false = Did not start/did not complete
40 CMIUtilString strErrorDescription; // Command failed this is why
41 bool bMIOldStyle; // True = format "3thread", false = format "3-thread"
43 bHasResultRecordExtra; // True = Yes command produced additional MI output to its 1 line response, false = no extra MI output formed
49 strMiCmdToken.clear();
50 strMiCmd = MIRSRC(IDS_CMD_ERR_CMD_RUN_BUT_NO_ACTION);
51 strMiCmdOption.clear();
53 strMiCmdResultRecord.clear();
54 strMiCmdResultRecordExtra.clear();
56 bCmdExecutedSuccessfully = false;
57 strErrorDescription.clear();
59 bHasResultRecordExtra = false;