003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lldb/include/lldb/Target
usr
/
src
/
contrib
/
llvm-project
/
lldb
/
include
/
lldb
/
Target
/
📁
..
📄
ABI.h
(7 KB)
📄
AssertFrameRecognizer.h
(1.79 KB)
📄
DynamicLoader.h
(12.8 KB)
📄
ExecutionContext.h
(23.91 KB)
📄
ExecutionContextScope.h
(2.07 KB)
📄
InstrumentationRuntime.h
(3.06 KB)
📄
InstrumentationRuntimeStopInfo.h
(1.3 KB)
📄
JITLoader.h
(2.15 KB)
📄
JITLoaderList.h
(1.17 KB)
📄
Language.h
(9.42 KB)
📄
LanguageRuntime.h
(6.71 KB)
📄
Memory.h
(4.66 KB)
📄
MemoryHistory.h
(998 B)
📄
MemoryRegionInfo.h
(4.76 KB)
📄
ModuleCache.h
(2.42 KB)
📄
OperatingSystem.h
(2.66 KB)
📄
PathMappingList.h
(4.09 KB)
📄
Platform.h
(42.4 KB)
📄
Process.h
(110.8 KB)
📄
ProcessStructReader.h
(3.27 KB)
📄
Queue.h
(5.04 KB)
📄
QueueItem.h
(5.24 KB)
📄
QueueList.h
(3.32 KB)
📄
RegisterCheckpoint.h
(1.89 KB)
📄
RegisterContext.h
(7.73 KB)
📄
RegisterContextUnwind.h
(9.73 KB)
📄
RegisterNumber.h
(1.71 KB)
📄
RemoteAwarePlatform.h
(3.76 KB)
📄
SectionLoadHistory.h
(2.79 KB)
📄
SectionLoadList.h
(2.36 KB)
📄
StackFrame.h
(20.05 KB)
📄
StackFrameList.h
(5.83 KB)
📄
StackFrameRecognizer.h
(5.65 KB)
📄
StackID.h
(3.16 KB)
📄
StopInfo.h
(6.92 KB)
📄
StructuredDataPlugin.h
(7.14 KB)
📄
SystemRuntime.h
(11.83 KB)
📄
Target.h
(49.2 KB)
📄
TargetList.h
(7.75 KB)
📄
Thread.h
(49.21 KB)
📄
ThreadCollection.h
(1.63 KB)
📄
ThreadList.h
(4.65 KB)
📄
ThreadPlan.h
(24.41 KB)
📄
ThreadPlanBase.h
(1.79 KB)
📄
ThreadPlanCallFunction.h
(5.55 KB)
📄
ThreadPlanCallFunctionUsingABI.h
(1.98 KB)
📄
ThreadPlanCallOnFunctionExit.h
(1.56 KB)
📄
ThreadPlanCallUserExpression.h
(2.21 KB)
📄
ThreadPlanPython.h
(2.11 KB)
📄
ThreadPlanRunToAddress.h
(2.04 KB)
📄
ThreadPlanShouldStopHere.h
(5.02 KB)
📄
ThreadPlanStack.h
(5.48 KB)
📄
ThreadPlanStepInRange.h
(4.66 KB)
📄
ThreadPlanStepInstruction.h
(1.86 KB)
📄
ThreadPlanStepOut.h
(3.67 KB)
📄
ThreadPlanStepOverBreakpoint.h
(1.84 KB)
📄
ThreadPlanStepOverRange.h
(1.83 KB)
📄
ThreadPlanStepRange.h
(3.69 KB)
📄
ThreadPlanStepThrough.h
(1.97 KB)
📄
ThreadPlanStepUntil.h
(2.12 KB)
📄
ThreadPlanTracer.h
(2.32 KB)
📄
ThreadSpec.h
(3.35 KB)
📄
UnixSignals.h
(4.25 KB)
📄
Unwind.h
(2.4 KB)
📄
UnwindAssembly.h
(1.81 KB)
📄
UnwindLLDB.h
(5.69 KB)
Editing: QueueItem.h
//===-- QueueItem.h ---------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLDB_TARGET_QUEUEITEM_H #define LLDB_TARGET_QUEUEITEM_H #include <memory> #include <string> #include <vector> #include "lldb/lldb-enumerations.h" #include "lldb/lldb-forward.h" #include "lldb/lldb-private.h" #include "lldb/Core/Address.h" #include "lldb/Utility/ConstString.h" namespace lldb_private { // QueueItem: // This class represents a work item enqueued on a libdispatch aka Grand // Central Dispatch (GCD) queue. Most often, this will be a function or block. // "enqueued" here means that the work item has been added to a queue but it // has not yet started executing. When it is "dequeued", execution of the item // begins. class QueueItem : public std::enable_shared_from_this<QueueItem> { public: QueueItem(lldb::QueueSP queue_sp, lldb::ProcessSP process_sp, lldb::addr_t item_ref, lldb_private::Address address); ~QueueItem(); /// Get the kind of work item this is /// /// \return /// The type of work item that this QueueItem object /// represents. eQueueItemKindUnknown may be returned. lldb::QueueItemKind GetKind(); /// Set the type of work item this is /// /// \param [in] item_kind /// Set the kind of this work item object. void SetKind(lldb::QueueItemKind item_kind); /// Get the code address that will be executed when this work item /// is executed. /// /// \return /// The address that will be invoked when this work item is /// executed. Not all types of QueueItems will have an /// address associated with them; check that the returned /// Address is valid, or check that the WorkItemKind is a /// kind that involves an address, such as eQueueItemKindFunction /// or eQueueItemKindBlock. lldb_private::Address &GetAddress(); /// Set the work item address for this object /// /// \param [in] addr /// The address that will be invoked when this work item /// is executed. void SetAddress(lldb_private::Address addr); /// Check if this QueueItem object is valid /// /// If the weak pointer to the parent Queue cannot be revivified, /// it is invalid. /// /// \return /// True if this object is valid. bool IsValid() { return m_queue_wp.lock() != nullptr; } /// Get an extended backtrace thread for this queue item, if available /// /// If the backtrace/thread information was collected when this item /// was enqueued, this call will provide it. /// /// \param [in] type /// The type of extended backtrace being requested, e.g. "libdispatch" /// or "pthread". /// /// \return /// A thread shared pointer which will have a reference to an extended /// thread if one was available. lldb::ThreadSP GetExtendedBacktraceThread(ConstString type); void SetItemThatEnqueuedThis(lldb::addr_t address_of_item) { m_item_that_enqueued_this_ref = address_of_item; } lldb::addr_t GetItemThatEnqueuedThis(); void SetEnqueueingThreadID(lldb::tid_t tid) { m_enqueueing_thread_id = tid; } lldb::tid_t GetEnqueueingThreadID(); void SetEnqueueingQueueID(lldb::queue_id_t qid) { m_enqueueing_queue_id = qid; } lldb::queue_id_t GetEnqueueingQueueID(); void SetTargetQueueID(lldb::queue_id_t qid) { m_target_queue_id = qid; } void SetStopID(uint32_t stop_id) { m_stop_id = stop_id; } uint32_t GetStopID(); void SetEnqueueingBacktrace(std::vector<lldb::addr_t> backtrace) { m_backtrace = backtrace; } std::vector<lldb::addr_t> &GetEnqueueingBacktrace(); void SetThreadLabel(std::string thread_name) { m_thread_label = thread_name; } std::string GetThreadLabel(); void SetQueueLabel(std::string queue_name) { m_queue_label = queue_name; } std::string GetQueueLabel(); void SetTargetQueueLabel(std::string queue_name) { m_target_queue_label = queue_name; } lldb::ProcessSP GetProcessSP(); protected: void FetchEntireItem(); lldb::QueueWP m_queue_wp; lldb::ProcessWP m_process_wp; lldb::addr_t m_item_ref; // the token we can be used to fetch more information // about this queue item lldb_private::Address m_address; bool m_have_fetched_entire_item; lldb::QueueItemKind m_kind; lldb::addr_t m_item_that_enqueued_this_ref; // a handle that we can pass into // libBacktraceRecording // to get the QueueItem that enqueued this item lldb::tid_t m_enqueueing_thread_id; // thread that enqueued this item lldb::queue_id_t m_enqueueing_queue_id; // Queue that enqueued this item, if it was a queue lldb::queue_id_t m_target_queue_id; uint32_t m_stop_id; // indicates when this backtrace was recorded in time std::vector<lldb::addr_t> m_backtrace; std::string m_thread_label; std::string m_queue_label; std::string m_target_queue_label; private: QueueItem(const QueueItem &) = delete; const QueueItem &operator=(const QueueItem &) = delete; }; } // namespace lldb_private #endif // LLDB_TARGET_QUEUEITEM_H
Upload File
Create Folder