]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/include/lldb/API/SBQueueItem.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / include / lldb / API / SBQueueItem.h
1 //===-- SBQueueItem.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 #ifndef LLDB_SBQueueItem_h_
10 #define LLDB_SBQueueItem_h_
11
12 #include "lldb/API/SBAddress.h"
13 #include "lldb/API/SBDefines.h"
14
15 namespace lldb {
16
17 class LLDB_API SBQueueItem {
18 public:
19   SBQueueItem();
20
21   SBQueueItem(const lldb::QueueItemSP &queue_item_sp);
22
23   ~SBQueueItem();
24
25   explicit operator bool() const;
26
27   bool IsValid() const;
28
29   void Clear();
30
31   lldb::QueueItemKind GetKind() const;
32
33   void SetKind(lldb::QueueItemKind kind);
34
35   lldb::SBAddress GetAddress() const;
36
37   void SetAddress(lldb::SBAddress addr);
38
39   void SetQueueItem(const lldb::QueueItemSP &queue_item_sp);
40
41   SBThread GetExtendedBacktraceThread(const char *type);
42
43 private:
44   lldb::QueueItemSP m_queue_item_sp;
45 };
46
47 } // namespace lldb
48
49 #endif // LLDB_SBQueueItem_h_