Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 1 | //===-- MICmdCmdFile.h ------------------------------------------*- C++ -*-===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 9 | // Overview: CMICmdCmdFileExecAndSymbols interface. |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 10 | // |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 11 | // To implement new MI commands derive a new command class from the |
| 12 | // command base |
| 13 | // class. To enable the new command for interpretation add the new |
| 14 | // command class |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 15 | // to the command factory. The files of relevance are: |
| 16 | // MICmdCommands.cpp |
| 17 | // MICmdBase.h / .cpp |
| 18 | // MICmdCmd.h / .cpp |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 19 | // For an introduction to adding a new command see |
| 20 | // CMICmdCmdSupportInfoMiCmdQuery |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 21 | // command class as an example. |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 22 | |
| 23 | #pragma once |
| 24 | |
| 25 | // In-house headers: |
| 26 | #include "MICmdBase.h" |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 27 | #include "MICmnMIValueList.h" |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 28 | #include "MICmnMIValueTuple.h" |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 29 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 30 | //++ |
| 31 | //============================================================================ |
Zachary Turner | 1d6af02 | 2014-11-17 18:06:21 +0000 | [diff] [blame] | 32 | // Details: MI command class. MI commands derived from the command base class. |
| 33 | // *this class implements MI command "file-exec-and-symbols". |
| 34 | // This command does not follow the MI documentation exactly. |
Bruce Mitchener | ae4c026 | 2015-07-07 14:04:40 +0000 | [diff] [blame] | 35 | // 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] | 36 | // See MIextensions.txt for details. |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 37 | //-- |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 38 | class CMICmdCmdFileExecAndSymbols : public CMICmdBase { |
| 39 | // Statics: |
| 40 | public: |
| 41 | // Required by the CMICmdFactory when registering *this command |
| 42 | static CMICmdBase *CreateSelf(); |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 43 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 44 | // Methods: |
| 45 | public: |
| 46 | /* ctor */ CMICmdCmdFileExecAndSymbols(); |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 47 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 48 | // Overridden: |
| 49 | public: |
| 50 | // From CMICmdInvoker::ICmd |
| 51 | bool Execute() override; |
| 52 | bool Acknowledge() override; |
| 53 | bool ParseArgs() override; |
| 54 | // From CMICmnBase |
| 55 | /* dtor */ ~CMICmdCmdFileExecAndSymbols() override; |
| 56 | bool GetExitAppOnCommandFailure() const override; |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 57 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 58 | // Attributes: |
| 59 | private: |
| 60 | const CMIUtilString m_constStrArgNameFile; |
| 61 | const CMIUtilString |
| 62 | m_constStrArgNamedPlatformName; // Added to support iOS platform selection |
| 63 | const CMIUtilString m_constStrArgNamedRemotePath; // Added to support iOS |
| 64 | // device remote file |
| 65 | // location |
Deepak Panickal | 877569c | 2014-06-24 16:35:50 +0000 | [diff] [blame] | 66 | }; |