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 | |
| 10 | //++ |
| 11 | // File: MICmdCmdFile.h |
| 12 | // |
| 13 | // Overview: CMICmdCmdFileExecAndSymbols interface. |
| 14 | // |
| 15 | // To implement new MI commands derive a new command class from the command base |
| 16 | // class. To enable the new command for interpretation add the new command class |
| 17 | // to the command factory. The files of relevance are: |
| 18 | // MICmdCommands.cpp |
| 19 | // MICmdBase.h / .cpp |
| 20 | // MICmdCmd.h / .cpp |
| 21 | // For an introduction to adding a new command see CMICmdCmdSupportInfoMiCmdQuery |
| 22 | // command class as an example. |
| 23 | // |
| 24 | // Environment: Compilers: Visual C++ 12. |
| 25 | // gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 |
| 26 | // Libraries: See MIReadmetxt. |
| 27 | // |
| 28 | // Copyright: None. |
| 29 | //-- |
| 30 | |
| 31 | #pragma once |
| 32 | |
| 33 | // In-house headers: |
| 34 | #include "MICmdBase.h" |
| 35 | #include "MICmnMIValueTuple.h" |
| 36 | #include "MICmnMIValueList.h" |
| 37 | |
| 38 | //++ ============================================================================ |
| 39 | // Details: MI command class. MI commands derived from the command base class. |
| 40 | // *this class implements MI command "file-exec-and-symbols". |
| 41 | // This command does not follow the MI documentation exactly. |
| 42 | // Gotchas: None. |
| 43 | // Authors: Illya Rudkin 25/02/2014. |
| 44 | // Changes: None. |
| 45 | //-- |
| 46 | class CMICmdCmdFileExecAndSymbols : public CMICmdBase |
| 47 | { |
| 48 | // Statics: |
| 49 | public: |
Deepak Panickal | 877569c | 2014-06-24 16:35:50 +0000 | [diff] [blame] | 50 | // Required by the CMICmdFactory when registering *this command |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 51 | static CMICmdBase * CreateSelf( void ); |
| 52 | |
| 53 | // Methods: |
| 54 | public: |
| 55 | /* ctor */ CMICmdCmdFileExecAndSymbols( void ); |
| 56 | |
| 57 | // Overridden: |
| 58 | public: |
| 59 | // From CMICmdInvoker::ICmd |
| 60 | virtual bool Execute( void ); |
| 61 | virtual bool Acknowledge( void ); |
| 62 | virtual bool ParseArgs( void ); |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 63 | // From CMICmnBase |
| 64 | /* dtor */ virtual ~CMICmdCmdFileExecAndSymbols( void ); |
Deepak Panickal | d249928 | 2014-08-08 16:47:42 +0000 | [diff] [blame^] | 65 | virtual bool GetExitAppOnCommandFailure( void ) const; |
Deepak Panickal | 6f9c468 | 2014-05-16 10:51:01 +0000 | [diff] [blame] | 66 | |
| 67 | // Attributes: |
| 68 | private: |
| 69 | const CMIUtilString m_constStrArgNameFile; |
| 70 | const CMIUtilString m_constStrArgThreadGrp; // Not handled by *this command. Not specified in MI spec but Eclipse gives this option sometimes |
Deepak Panickal | 877569c | 2014-06-24 16:35:50 +0000 | [diff] [blame] | 71 | }; |