blob: 435dafe534a6764d6408edd2bed3b0979b58351c [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
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02009#ifndef LLDB_API_SBQUEUEITEM_H
10#define LLDB_API_SBQUEUEITEM_H
Andrew Walbran3d2c1972020-04-07 12:24:26 +010011
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
Olivier Deprezf4ef2d02021-04-20 13:36:24 +020049#endif // LLDB_API_SBQUEUEITEM_H