blob: 9fa14f19bc0e278e1be8268c00f3418a5711203a [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.
Hafiz Abid Qadeer5f86f212015-03-12 18:35:54 +000032// Gotchas: This command has additonal flags that were not available in GDB MI.
33// See MIextensions.txt for details.
Zachary Turner1d6af022014-11-17 18:06:21 +000034// Authors: Illya Rudkin 25/02/2014.
35// Changes: None.
Deepak Panickal6f9c4682014-05-16 10:51:01 +000036//--
37class CMICmdCmdFileExecAndSymbols : public CMICmdBase
38{
Zachary Turner1d6af022014-11-17 18:06:21 +000039 // Statics:
40 public:
41 // Required by the CMICmdFactory when registering *this command
42 static CMICmdBase *CreateSelf(void);
Deepak Panickal6f9c4682014-05-16 10:51:01 +000043
Zachary Turner1d6af022014-11-17 18:06:21 +000044 // Methods:
45 public:
46 /* ctor */ CMICmdCmdFileExecAndSymbols(void);
Deepak Panickal6f9c4682014-05-16 10:51:01 +000047
Zachary Turner1d6af022014-11-17 18:06:21 +000048 // Overridden:
49 public:
50 // From CMICmdInvoker::ICmd
Bruce Mitchener88205302015-07-06 15:48:55 +000051 bool Execute(void) override;
52 bool Acknowledge(void) override;
53 bool ParseArgs(void) override;
Zachary Turner1d6af022014-11-17 18:06:21 +000054 // From CMICmnBase
Bruce Mitchener88205302015-07-06 15:48:55 +000055 /* dtor */ ~CMICmdCmdFileExecAndSymbols(void) override;
56 bool GetExitAppOnCommandFailure(void) const override;
Deepak Panickal6f9c4682014-05-16 10:51:01 +000057
Zachary Turner1d6af022014-11-17 18:06:21 +000058 // Attributes:
59 private:
60 const CMIUtilString m_constStrArgNameFile;
61 const CMIUtilString
62 m_constStrArgThreadGrp; // Not handled by *this command. Not specified in MI spec but Eclipse gives this option sometimes
Hafiz Abid Qadeer5f86f212015-03-12 18:35:54 +000063 const CMIUtilString m_constStrArgNamedPlatformName; // Added to support iOS platform selection
64 const CMIUtilString m_constStrArgNamedRemotePath; // Added to support iOS device remote file location
Deepak Panickal877569c2014-06-24 16:35:50 +000065};