blob: b6bf5e5ccc6c1bfbd1ba2fb78709dbeddd400357 [file] [log] [blame]
Deepak Panickal6f9c4682014-05-16 10:51:01 +00001//===-- MICmdCmdFile.h ------------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
Zachary Turner1d6af022014-11-17 18:06:21 +000010// Overview: CMICmdCmdFileExecAndSymbols interface.
Deepak Panickal6f9c4682014-05-16 10:51:01 +000011//
Zachary Turner1d6af022014-11-17 18:06:21 +000012// To implement new MI commands derive a new command class from the command base
13// class. To enable the new command for interpretation add the new command class
14// to the command factory. The files of relevance are:
15// MICmdCommands.cpp
16// MICmdBase.h / .cpp
17// MICmdCmd.h / .cpp
18// For an introduction to adding a new command see CMICmdCmdSupportInfoMiCmdQuery
19// command class as an example.
Deepak Panickal6f9c4682014-05-16 10:51:01 +000020
21#pragma once
22
23// In-house headers:
24#include "MICmdBase.h"
25#include "MICmnMIValueTuple.h"
26#include "MICmnMIValueList.h"
27
28//++ ============================================================================
Zachary Turner1d6af022014-11-17 18:06:21 +000029// Details: MI command class. MI commands derived from the command base class.
30// *this class implements MI command "file-exec-and-symbols".
31// This command does not follow the MI documentation exactly.
Bruce Mitchenerae4c0262015-07-07 14:04:40 +000032// Gotchas: This command has additional flags that were not available in GDB MI.
Hafiz Abid Qadeer5f86f212015-03-12 18:35:54 +000033// See MIextensions.txt for details.
Deepak Panickal6f9c4682014-05-16 10:51:01 +000034//--
35class CMICmdCmdFileExecAndSymbols : public CMICmdBase
36{
Zachary Turner1d6af022014-11-17 18:06:21 +000037 // Statics:
38 public:
39 // Required by the CMICmdFactory when registering *this command
Bruce Mitchenere2453af2015-08-04 10:24:20 +000040 static CMICmdBase *CreateSelf();
Deepak Panickal6f9c4682014-05-16 10:51:01 +000041
Zachary Turner1d6af022014-11-17 18:06:21 +000042 // Methods:
43 public:
Bruce Mitchenere2453af2015-08-04 10:24:20 +000044 /* ctor */ CMICmdCmdFileExecAndSymbols();
Deepak Panickal6f9c4682014-05-16 10:51:01 +000045
Zachary Turner1d6af022014-11-17 18:06:21 +000046 // Overridden:
47 public:
48 // From CMICmdInvoker::ICmd
Bruce Mitchenere2453af2015-08-04 10:24:20 +000049 bool Execute() override;
50 bool Acknowledge() override;
51 bool ParseArgs() override;
Zachary Turner1d6af022014-11-17 18:06:21 +000052 // From CMICmnBase
Bruce Mitchenere2453af2015-08-04 10:24:20 +000053 /* dtor */ ~CMICmdCmdFileExecAndSymbols() override;
54 bool GetExitAppOnCommandFailure() const override;
Deepak Panickal6f9c4682014-05-16 10:51:01 +000055
Zachary Turner1d6af022014-11-17 18:06:21 +000056 // Attributes:
57 private:
58 const CMIUtilString m_constStrArgNameFile;
Hafiz Abid Qadeer5f86f212015-03-12 18:35:54 +000059 const CMIUtilString m_constStrArgNamedPlatformName; // Added to support iOS platform selection
60 const CMIUtilString m_constStrArgNamedRemotePath; // Added to support iOS device remote file location
Deepak Panickal877569c2014-06-24 16:35:50 +000061};