blob: 0a25200cda8d5fa24e3e69eb3b55a9cbbf4c89f1 [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//
Kate Stoneb9c1b512016-09-06 20:57:50 +000012// To implement new MI commands derive a new command class from the
13// command base
14// class. To enable the new command for interpretation add the new
15// command class
Zachary Turner1d6af022014-11-17 18:06:21 +000016// to the command factory. The files of relevance are:
17// MICmdCommands.cpp
18// MICmdBase.h / .cpp
19// MICmdCmd.h / .cpp
Kate Stoneb9c1b512016-09-06 20:57:50 +000020// For an introduction to adding a new command see
21// CMICmdCmdSupportInfoMiCmdQuery
Zachary Turner1d6af022014-11-17 18:06:21 +000022// command class as an example.
Deepak Panickal6f9c4682014-05-16 10:51:01 +000023
24#pragma once
25
26// In-house headers:
27#include "MICmdBase.h"
Deepak Panickal6f9c4682014-05-16 10:51:01 +000028#include "MICmnMIValueList.h"
Kate Stoneb9c1b512016-09-06 20:57:50 +000029#include "MICmnMIValueTuple.h"
Deepak Panickal6f9c4682014-05-16 10:51:01 +000030
Kate Stoneb9c1b512016-09-06 20:57:50 +000031//++
32//============================================================================
Zachary Turner1d6af022014-11-17 18:06:21 +000033// Details: MI command class. MI commands derived from the command base class.
34// *this class implements MI command "file-exec-and-symbols".
35// This command does not follow the MI documentation exactly.
Bruce Mitchenerae4c0262015-07-07 14:04:40 +000036// Gotchas: This command has additional flags that were not available in GDB MI.
Hafiz Abid Qadeer5f86f212015-03-12 18:35:54 +000037// See MIextensions.txt for details.
Deepak Panickal6f9c4682014-05-16 10:51:01 +000038//--
Kate Stoneb9c1b512016-09-06 20:57:50 +000039class CMICmdCmdFileExecAndSymbols : public CMICmdBase {
40 // Statics:
41public:
42 // Required by the CMICmdFactory when registering *this command
43 static CMICmdBase *CreateSelf();
Deepak Panickal6f9c4682014-05-16 10:51:01 +000044
Kate Stoneb9c1b512016-09-06 20:57:50 +000045 // Methods:
46public:
47 /* ctor */ CMICmdCmdFileExecAndSymbols();
Deepak Panickal6f9c4682014-05-16 10:51:01 +000048
Kate Stoneb9c1b512016-09-06 20:57:50 +000049 // Overridden:
50public:
51 // From CMICmdInvoker::ICmd
52 bool Execute() override;
53 bool Acknowledge() override;
54 bool ParseArgs() override;
55 // From CMICmnBase
56 /* dtor */ ~CMICmdCmdFileExecAndSymbols() override;
57 bool GetExitAppOnCommandFailure() const override;
Deepak Panickal6f9c4682014-05-16 10:51:01 +000058
Kate Stoneb9c1b512016-09-06 20:57:50 +000059 // Attributes:
60private:
61 const CMIUtilString m_constStrArgNameFile;
62 const CMIUtilString
63 m_constStrArgNamedPlatformName; // Added to support iOS platform selection
64 const CMIUtilString m_constStrArgNamedRemotePath; // Added to support iOS
65 // device remote file
66 // location
Deepak Panickal877569c2014-06-24 16:35:50 +000067};