]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MICmnLLDBBroadcaster.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MICmnLLDBBroadcaster.h
1 //===-- MICmnLLDBBroadcaster.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 #pragma once
10
11 // In-house headers:
12 #include "MICmnBase.h"
13 #include "MIUtilSingletonBase.h"
14 #include "lldb/API/SBBroadcaster.h"
15
16 //++
17 //============================================================================
18 // Details: MI derived class from LLDB SBBroadcaster API.
19 //
20 //          *** This class (files) is a place holder until we know we need it or
21 //          *** not
22 //
23 //          A singleton class.
24 //--
25 class CMICmnLLDBBroadcaster : public CMICmnBase,
26                               public lldb::SBBroadcaster,
27                               public MI::ISingleton<CMICmnLLDBBroadcaster> {
28   friend MI::ISingleton<CMICmnLLDBBroadcaster>;
29
30   // Methods:
31 public:
32   bool Initialize() override;
33   bool Shutdown() override;
34   // Methods:
35 private:
36   /* ctor */ CMICmnLLDBBroadcaster();
37   /* ctor */ CMICmnLLDBBroadcaster(const CMICmnLLDBBroadcaster &);
38   void operator=(const CMICmnLLDBBroadcaster &);
39
40   // Overridden:
41 private:
42   // From CMICmnBase
43   /* dtor */ ~CMICmnLLDBBroadcaster() override;
44 };