Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 1 | //===-- MICmdCmdSymbol.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 | |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 10 | // Overview: CMICmdCmdSymbolListLines interface. |
| 11 | // |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 12 | // To implement new MI commands derive a new command class from the |
| 13 | // command base |
| 14 | // class. To enable the new command for interpretation add the new |
| 15 | // command class |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 16 | // to the command factory. The files of relevance are: |
| 17 | // MICmdCommands.cpp |
| 18 | // MICmdBase.h / .cpp |
| 19 | // MICmdCmd.h / .cpp |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 20 | // For an introduction to adding a new command see |
| 21 | // CMICmdCmdSupportInfoMiCmdQuery |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 22 | // command class as an example. |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 23 | |
| 24 | #pragma once |
| 25 | |
| 26 | // Third party headers: |
Greg Clayton | ee1b391 | 2015-02-21 00:39:13 +0000 | [diff] [blame] | 27 | #include "lldb/API/SBCommandReturnObject.h" |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 28 | |
| 29 | // In-house headers: |
| 30 | #include "MICmdBase.h" |
| 31 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 32 | //++ |
| 33 | //============================================================================ |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 34 | // Details: MI command class. MI commands derived from the command base class. |
| 35 | // *this class implements MI command "symbol-list-lines". |
| 36 | //-- |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 37 | class CMICmdCmdSymbolListLines : public CMICmdBase { |
| 38 | // Statics: |
| 39 | public: |
| 40 | // Required by the CMICmdFactory when registering *this command |
| 41 | static CMICmdBase *CreateSelf(); |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 42 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 43 | // Methods: |
| 44 | public: |
| 45 | /* ctor */ CMICmdCmdSymbolListLines(); |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 46 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 47 | // Overridden: |
| 48 | public: |
| 49 | // From CMICmdInvoker::ICmd |
| 50 | bool Execute() override; |
| 51 | bool Acknowledge() override; |
| 52 | bool ParseArgs() override; |
| 53 | // From CMICmnBase |
| 54 | /* dtor */ ~CMICmdCmdSymbolListLines() override; |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 55 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 56 | // Attributes: |
| 57 | private: |
| 58 | lldb::SBCommandReturnObject m_lldbResult; |
| 59 | const CMIUtilString m_constStrArgNameFile; |
Ilia K | c12d88d | 2015-02-20 13:07:41 +0000 | [diff] [blame] | 60 | }; |