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 // Overview: SMICmdData interface.
15 // Environment: Compilers: Visual C++ 12.
16 // gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
17 // Libraries: See MIReadmetxt.
25 #include "MICmnResources.h"
27 //++ ============================================================================
28 // Details: MI command metadata. Holds the command's name, MI number and options
29 // as found on stdin. Holds the command's MI output (written to stdout).
31 // Authors: Illya Rudkin 18/02/2014.
39 , bCmdExecutedSuccessfully(false)
41 , bHasResultRecordExtra(false){};
43 MIuint id; // A command's unique ID i.e. GUID
44 CMIUtilString strMiCmdToken; // The command's MI token (a number)
45 CMIUtilString strMiCmd; // The command's name
46 CMIUtilString strMiCmdOption; // The command's arguments or options
47 CMIUtilString strMiCmdAll; // The text as received from the client
48 CMIUtilString strMiCmdResultRecord; // Each command forms 1 response to its input
49 CMIUtilString strMiCmdResultRecordExtra; // Hack command produce more response text to help the client because of using LLDB
50 bool bCmdValid; // True = Valid MI format command, false = invalid
51 bool bCmdExecutedSuccessfully; // True = Command finished successfully, false = Did not start/did not complete
52 CMIUtilString strErrorDescription; // Command failed this is why
53 bool bMIOldStyle; // True = format "3thread", false = format "3-thread"
55 bHasResultRecordExtra; // True = Yes command produced additional MI output to its 1 line response, false = no extra MI output formed
61 strMiCmdToken.clear();
62 strMiCmd = MIRSRC(IDS_CMD_ERR_CMD_RUN_BUT_NO_ACTION);
63 strMiCmdOption.clear();
65 strMiCmdResultRecord.clear();
66 strMiCmdResultRecordExtra.clear();
68 bCmdExecutedSuccessfully = false;
69 strErrorDescription.clear();
71 bHasResultRecordExtra = false;