]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/lldb-mi/MICmdCmdTrace.h
Vendor import of (stripped) lldb trunk r242221:
[FreeBSD/FreeBSD.git] / tools / lldb-mi / MICmdCmdTrace.h
1 //===-- MICmdCmdTrace.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:    CMICmdCmdTraceStatus            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
26 //++ ============================================================================
27 // Details: MI command class. MI commands derived from the command base class.
28 //          *this class implements MI command "trace-status".
29 // Gotchas: None.
30 // Authors: Illya Rudkin 07/03/2014.
31 // Changes: None.
32 //--
33 class CMICmdCmdTraceStatus : public CMICmdBase
34 {
35     // Statics:
36   public:
37     // Required by the CMICmdFactory when registering *this command
38     static CMICmdBase *CreateSelf(void);
39
40     // Methods:
41   public:
42     /* ctor */ CMICmdCmdTraceStatus(void);
43
44     // Overridden:
45   public:
46     // From CMICmdInvoker::ICmd
47     bool Execute(void) override;
48     bool Acknowledge(void) override;
49     // From CMICmnBase
50     /* dtor */ ~CMICmdCmdTraceStatus(void) override;
51 };