]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MICmdCmdFile.h
Import dma snapshot from git 2017-02-10
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MICmdCmdFile.h
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 // Overview:    CMICmdCmdFileExecAndSymbols     interface.
11 //
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.
20
21 #pragma once
22
23 // In-house headers:
24 #include "MICmdBase.h"
25 #include "MICmnMIValueTuple.h"
26 #include "MICmnMIValueList.h"
27
28 //++ ============================================================================
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.
32 // Gotchas: This command has additional flags that were not available in GDB MI.
33 //          See MIextensions.txt for details.
34 //--
35 class CMICmdCmdFileExecAndSymbols : public CMICmdBase
36 {
37     // Statics:
38   public:
39     // Required by the CMICmdFactory when registering *this command
40     static CMICmdBase *CreateSelf();
41
42     // Methods:
43   public:
44     /* ctor */ CMICmdCmdFileExecAndSymbols();
45
46     // Overridden:
47   public:
48     // From CMICmdInvoker::ICmd
49     bool Execute() override;
50     bool Acknowledge() override;
51     bool ParseArgs() override;
52     // From CMICmnBase
53     /* dtor */ ~CMICmdCmdFileExecAndSymbols() override;
54     bool GetExitAppOnCommandFailure() const override;
55
56     // Attributes:
57   private:
58     const CMIUtilString m_constStrArgNameFile;
59     const CMIUtilString m_constStrArgNamedPlatformName; // Added to support iOS platform selection
60     const CMIUtilString m_constStrArgNamedRemotePath; // Added to support iOS device remote file location
61 };