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. |
Hafiz Abid Qadeer | 5f86f21 | 2015-03-12 18:35:54 +0000 | [diff] [blame] | 32 | // Gotchas: This command has additonal flags that were not available in GDB MI. |
| 33 | // See MIextensions.txt for details. |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 34 | // Authors: Illya Rudkin 25/02/2014. |
| 35 | // Changes: None. |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 36 | //-- |
| 37 | class CMICmdCmdFileExecAndSymbols : public CMICmdBase |
| 38 | { |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 39 | // Statics: |
| 40 | public: |
| 41 | // Required by the CMICmdFactory when registering *this command |
| 42 | static CMICmdBase *CreateSelf(void); |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 43 | |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 44 | // Methods: |
| 45 | public: |
| 46 | /* ctor */ CMICmdCmdFileExecAndSymbols(void); |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 47 | |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 48 | // Overridden: |
| 49 | public: |
| 50 | // From CMICmdInvoker::ICmd |
Bruce Mitchener | 8820530 | 2015-07-06 15:48:55 +0000 | [diff] [blame^] | 51 | bool Execute(void) override; |
| 52 | bool Acknowledge(void) override; |
| 53 | bool ParseArgs(void) override; |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 54 | // From CMICmnBase |
Bruce Mitchener | 8820530 | 2015-07-06 15:48:55 +0000 | [diff] [blame^] | 55 | /* dtor */ ~CMICmdCmdFileExecAndSymbols(void) override; |
| 56 | bool GetExitAppOnCommandFailure(void) const override; |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 57 | |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 58 | // 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 Qadeer | 5f86f21 | 2015-03-12 18:35:54 +0000 | [diff] [blame] | 63 | const CMIUtilString m_constStrArgNamedPlatformName; // Added to support iOS platform selection |
| 64 | const CMIUtilString m_constStrArgNamedRemotePath; // Added to support iOS device remote file location |
Deepak Panickal | 877569c | 2014-06-24 16:35:50 +0000 | [diff] [blame] | 65 | }; |