Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 1 | //===-- 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 Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 10 | // Overview: CMICmdCmdFileExecAndSymbols interface. |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 11 | // |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 12 | // 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 Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 20 | |
| 21 | #pragma once |
| 22 | |
| 23 | // In-house headers: |
| 24 | #include "MICmdBase.h" |
| 25 | #include "MICmnMIValueTuple.h" |
| 26 | #include "MICmnMIValueList.h" |
| 27 | |
| 28 | //++ ============================================================================ |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 29 | // 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 Mitchener | ae4c026 | 2015-07-07 14:04:40 +0000 | [diff] [blame] | 32 | // Gotchas: This command has additional flags that were not available in GDB MI. |
Hafiz Abid Qadeer | 5f86f21 | 2015-03-12 18:35:54 +0000 | [diff] [blame] | 33 | // See MIextensions.txt for details. |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 34 | //-- |
| 35 | class CMICmdCmdFileExecAndSymbols : public CMICmdBase |
| 36 | { |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 37 | // Statics: |
| 38 | public: |
| 39 | // Required by the CMICmdFactory when registering *this command |
Bruce Mitchener | e2453af | 2015-08-04 10:24:20 +0000 | [diff] [blame] | 40 | static CMICmdBase *CreateSelf(); |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 41 | |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 42 | // Methods: |
| 43 | public: |
Bruce Mitchener | e2453af | 2015-08-04 10:24:20 +0000 | [diff] [blame] | 44 | /* ctor */ CMICmdCmdFileExecAndSymbols(); |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 45 | |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 46 | // Overridden: |
| 47 | public: |
| 48 | // From CMICmdInvoker::ICmd |
Bruce Mitchener | e2453af | 2015-08-04 10:24:20 +0000 | [diff] [blame] | 49 | bool Execute() override; |
| 50 | bool Acknowledge() override; |
| 51 | bool ParseArgs() override; |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 52 | // From CMICmnBase |
Bruce Mitchener | e2453af | 2015-08-04 10:24:20 +0000 | [diff] [blame] | 53 | /* dtor */ ~CMICmdCmdFileExecAndSymbols() override; |
| 54 | bool GetExitAppOnCommandFailure() const override; |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 55 | |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 56 | // Attributes: |
| 57 | private: |
| 58 | const CMIUtilString m_constStrArgNameFile; |
Hafiz Abid Qadeer | 5f86f21 | 2015-03-12 18:35:54 +0000 | [diff] [blame] | 59 | const CMIUtilString m_constStrArgNamedPlatformName; // Added to support iOS platform selection |
| 60 | const CMIUtilString m_constStrArgNamedRemotePath; // Added to support iOS device remote file location |
Deepak Panickal | 877569c | 2014-06-24 16:35:50 +0000 | [diff] [blame] | 61 | }; |