1 //===-- MICmdCmdSupportInfo.h -----------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // Overview: CMICmdCmdSupportInfoMiCmdQuery interface.
11 // To implement new MI commands derive a new command class from the
13 // class. To enable the new command for interpretation add the new
15 // to the command factory. The files of relevance are:
19 // For an introduction to adding a new command see
20 // CMICmdCmdSupportInfoMiCmdQuery
21 // command class as an example.
26 #include "MICmdBase.h"
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.
34 class CMICmdCmdSupportInfoMiCmdQuery : public CMICmdBase {
37 // Required by the CMICmdFactory when registering *this command
38 static CMICmdBase *CreateSelf();
42 /* ctor */ CMICmdCmdSupportInfoMiCmdQuery();
46 // From CMICmdInvoker::ICmd
47 bool Execute() override;
48 bool Acknowledge() override;
49 bool ParseArgs() override;
51 /* dtor */ ~CMICmdCmdSupportInfoMiCmdQuery() override;
55 bool m_bCmdFound; // True = query for the command in command factory found,
56 // false = not found not recognised
57 const CMIUtilString m_constStrArgCmdName;