]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MICmdCmdSupportInfo.h
Update compiler-rt to trunk r224034. This brings a number of new
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MICmdCmdSupportInfo.h
1 //===-- MICmdCmdSupportInfo.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:                MICmdCmdSupportInfo.h
12 //
13 // Overview:    CMICmdCmdSupportInfoMiCmdQuery                  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
36 //++ ============================================================================
37 // Details:     MI command class. MI commands derived from the command base class.
38 //                      *this class implements MI command "info-gdb-mi-command".
39 //                      This command does not follow the MI documentation exactly.
40 // Gotchas:     None.
41 // Authors:     Illya Rudkin 06/05/2014.
42 // Changes:     None.
43 //--
44 class CMICmdCmdSupportInfoMiCmdQuery : public CMICmdBase
45 {
46 // Statics:
47 public:
48         // Required by the CMICmdFactory when registering *this command
49         static CMICmdBase *     CreateSelf( void );
50
51 // Methods:
52 public:
53         /* ctor */      CMICmdCmdSupportInfoMiCmdQuery( void );
54
55 // Overridden:
56 public:
57         // From CMICmdInvoker::ICmd
58         virtual bool    Execute( void );
59         virtual bool    Acknowledge( void );
60         virtual bool    ParseArgs( void );
61         // From CMICmnBase
62         /* dtor */ virtual ~CMICmdCmdSupportInfoMiCmdQuery( void );
63
64 // Attributes:
65 private:
66         bool                            m_bCmdFound;    // True = query for the command in command factory found, false = not found not recognised
67         const CMIUtilString     m_constStrArgCmdName;
68 };
69