]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/tools/lldb-mi/MICmdCmdSupportInfo.h
Unbreak DRM KMS build by adding the needed compatibility field in the LinuxKPI.
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / tools / lldb-mi / MICmdCmdSupportInfo.h
1 //===-- MICmdCmdSupportInfo.h -----------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8
9 // Overview:    CMICmdCmdSupportInfoMiCmdQuery          interface.
10 //
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
15 //              to the command factory. The files of relevance are:
16 //                  MICmdCommands.cpp
17 //                  MICmdBase.h / .cpp
18 //                  MICmdCmd.h / .cpp
19 //              For an introduction to adding a new command see
20 //              CMICmdCmdSupportInfoMiCmdQuery
21 //              command class as an example.
22
23 #pragma once
24
25 // In-house headers:
26 #include "MICmdBase.h"
27
28 //++
29 //============================================================================
30 // Details: MI command class. MI commands derived from the command base class.
31 //          *this class implements MI command "info-gdb-mi-command".
32 //          This command does not follow the MI documentation exactly.
33 //--
34 class CMICmdCmdSupportInfoMiCmdQuery : public CMICmdBase {
35   // Statics:
36 public:
37   // Required by the CMICmdFactory when registering *this command
38   static CMICmdBase *CreateSelf();
39
40   // Methods:
41 public:
42   /* ctor */ CMICmdCmdSupportInfoMiCmdQuery();
43
44   // Overridden:
45 public:
46   // From CMICmdInvoker::ICmd
47   bool Execute() override;
48   bool Acknowledge() override;
49   bool ParseArgs() override;
50   // From CMICmnBase
51   /* dtor */ ~CMICmdCmdSupportInfoMiCmdQuery() override;
52
53   // Attributes:
54 private:
55   bool m_bCmdFound; // True = query for the command in command factory found,
56                     // false = not found not recognised
57   const CMIUtilString m_constStrArgCmdName;
58 };