File indexing completed on 2026-05-10 08:43:00
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLDB_LLDB_TYPES_H
0010 #define LLDB_LLDB_TYPES_H
0011
0012 #include "lldb/lldb-enumerations.h"
0013 #include "lldb/lldb-forward.h"
0014
0015 #include <cstdint>
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 #ifdef _WIN32
0037
0038 #include <process.h>
0039
0040 namespace lldb {
0041 typedef void *rwlock_t;
0042 typedef void *process_t;
0043 typedef void *thread_t;
0044 typedef void *file_t;
0045 typedef unsigned int __w64 socket_t;
0046 typedef void *thread_arg_t;
0047 typedef unsigned thread_result_t;
0048 typedef thread_result_t (*thread_func_t)(void *);
0049 typedef void *pipe_t;
0050
0051 #else
0052
0053 #include <pthread.h>
0054
0055 namespace lldb {
0056 typedef pthread_rwlock_t rwlock_t;
0057 typedef uint64_t process_t;
0058 typedef pthread_t thread_t;
0059 typedef int file_t;
0060 typedef int socket_t;
0061 typedef void *thread_arg_t;
0062 typedef void *thread_result_t;
0063 typedef void *(*thread_func_t)(void *);
0064 typedef int pipe_t;
0065
0066 #endif
0067
0068 #define LLDB_INVALID_PROCESS ((lldb::process_t)-1)
0069 #define LLDB_INVALID_HOST_THREAD ((lldb::thread_t)NULL)
0070 #define LLDB_INVALID_PIPE ((lldb::pipe_t)-1)
0071 #define LLDB_INVALID_CALLBACK_TOKEN ((lldb::callback_token_t) - 1)
0072
0073 typedef void (*LogOutputCallback)(const char *, void *baton);
0074 typedef bool (*CommandOverrideCallback)(void *baton, const char **argv);
0075 typedef bool (*ExpressionCancelCallback)(lldb::ExpressionEvaluationPhase phase,
0076 void *baton);
0077
0078 typedef void *ScriptObjectPtr;
0079
0080 typedef uint64_t addr_t;
0081 typedef int32_t callback_token_t;
0082 typedef uint64_t user_id_t;
0083 typedef uint64_t pid_t;
0084 typedef uint64_t tid_t;
0085 typedef uint64_t offset_t;
0086 typedef int32_t break_id_t;
0087 typedef int32_t watch_id_t;
0088 typedef uint32_t wp_resource_id_t;
0089 typedef void *opaque_compiler_type_t;
0090 typedef uint64_t queue_id_t;
0091 typedef uint32_t cpu_id_t;
0092
0093 }
0094
0095 #endif