[Lldb-commits] [lldb] SBDebugger: Add new APIs `AddDestroyCallback` and `RemoveDestroyCallback` (PR #89868)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Mon May 20 10:45:44 PDT 2024
================
@@ -62,12 +62,15 @@ typedef void *thread_arg_t; // Host thread argument type
typedef void *thread_result_t; // Host thread result type
typedef void *(*thread_func_t)(void *); // Host thread function type
typedef int pipe_t; // Host pipe type
+typedef int destroy_callback_token_t; // Debugger destroy callback token type
#endif // _WIN32
#define LLDB_INVALID_PROCESS ((lldb::process_t)-1)
#define LLDB_INVALID_HOST_THREAD ((lldb::thread_t)NULL)
#define LLDB_INVALID_PIPE ((lldb::pipe_t)-1)
+#define LLDB_INVALID_DESTROY_CALLBACK_TOKEN \
+ ((lldb::destroy_callback_token_t) - 1)
----------------
clayborg wrote:
Remove "DESTROY" from bot the #define and _t type:
```
#define LLDB_INVALID_CALLBACK_TOKEN ((lldb::callback_token_t) - 1)
```
https://github.com/llvm/llvm-project/pull/89868
More information about the lldb-commits
mailing list