]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/tools/lldb-mi/MICmdCmdGdbThread.h
MFC r355940:
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / tools / lldb-mi / MICmdCmdGdbThread.h
1 //===-- MICmdCmdGdbThread.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:    CMICmdCmdGdbThread      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 GDB command "thread".
32 //--
33 class CMICmdCmdGdbThread : public CMICmdBase {
34   // Statics:
35 public:
36   // Required by the CMICmdFactory when registering *this command
37   static CMICmdBase *CreateSelf();
38
39   // Methods:
40 public:
41   /* ctor */ CMICmdCmdGdbThread();
42
43   // Overridden:
44 public:
45   // From CMICmdInvoker::ICmd
46   bool Execute() override;
47   bool Acknowledge() override;
48   // From CMICmnBase
49   /* dtor */ ~CMICmdCmdGdbThread() override;
50 };