blob: 455a1f98379a843994e5cbc48355e396efeb86dd [file] [log] [blame]
Andrew Walbran3d2c1972020-04-07 12:24:26 +01001//===-- 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
15namespace lldb {
16
17class LLDB_API SBQueueItem {
18public:
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
43private:
44 lldb::QueueItemSP m_queue_item_sp;
45};
46
47} // namespace lldb
48
49#endif // LLDB_SBQueueItem_h_