//===-- AppleGetThreadItemInfoHandler.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_SOURCE_PLUGINS_SYSTEMRUNTIME_MACOSX_APPLEGETTHREADITEMINFOHANDLER_H #define LLDB_SOURCE_PLUGINS_SYSTEMRUNTIME_MACOSX_APPLEGETTHREADITEMINFOHANDLER_H #include <map> #include <mutex> #include <vector> #include "lldb/Symbol/CompilerType.h" #include "lldb/Utility/Status.h" #include "lldb/lldb-public.h" // This class will insert a UtilityFunction into the inferior process for // calling libBacktraceRecording's // __introspection_dispatch_thread_get_item_info() // function. The function in the inferior will return a struct by value // with these members: // // struct get_thread_item_info_return_values // { // introspection_dispatch_item_info_ref *item_buffer; // uint64_t item_buffer_size; // }; // // The item_buffer pointer is an address in the inferior program's address // space (item_buffer_size in size) which must be mach_vm_deallocate'd by // lldb. // // The AppleGetThreadItemInfoHandler object should persist so that the // UtilityFunction // can be reused multiple times. namespace lldb_private { class AppleGetThreadItemInfoHandler { … }; } // using namespace lldb_private #endif // LLDB_SOURCE_PLUGINS_SYSTEMRUNTIME_MACOSX_APPLEGETTHREADITEMINFOHANDLER_H