LLDB  mainline
Macros
lldb-defines.h File Reference
#include "lldb/lldb-types.h"
Include dependency graph for lldb-defines.h:

Go to the source code of this file.

Macros

#define LLDB_API
 
#define INT32_MAX   2147483647
 
#define UINT32_MAX   4294967295U
 
#define UINT64_MAX   18446744073709551615ULL
 
#define LLDB_GENERIC_ERROR   UINT32_MAX
 
#define LLDB_INVALID_BREAK_ID   0
 
#define LLDB_DEFAULT_BREAK_SIZE   0
 
#define LLDB_BREAK_ID_IS_VALID(bid)   ((bid) != (LLDB_INVALID_BREAK_ID))
 
#define LLDB_BREAK_ID_IS_INTERNAL(bid)   ((bid) < 0)
 
#define LLDB_INVALID_WATCH_ID   0
 
#define LLDB_WATCH_ID_IS_VALID(uid)   ((uid) != (LLDB_INVALID_WATCH_ID))
 
#define LLDB_WATCH_TYPE_READ   (1u << 0)
 
#define LLDB_WATCH_TYPE_WRITE   (1u << 1)
 
#define LLDB_WATCH_TYPE_IS_VALID(type)   ((type | LLDB_WATCH_TYPE_READ) || (type | LLDB_WATCH_TYPE_WRITE))
 
#define LLDB_REGNUM_GENERIC_PC   0
 
#define LLDB_REGNUM_GENERIC_SP   1
 
#define LLDB_REGNUM_GENERIC_FP   2
 
#define LLDB_REGNUM_GENERIC_RA   3
 
#define LLDB_REGNUM_GENERIC_FLAGS   4
 
#define LLDB_REGNUM_GENERIC_ARG1   5
 
#define LLDB_REGNUM_GENERIC_ARG2   6
 
#define LLDB_REGNUM_GENERIC_ARG3   7
 
#define LLDB_REGNUM_GENERIC_ARG4   8
 
#define LLDB_REGNUM_GENERIC_ARG5   9
 
#define LLDB_REGNUM_GENERIC_ARG6   10
 
#define LLDB_REGNUM_GENERIC_ARG7   11
 
#define LLDB_REGNUM_GENERIC_ARG8   12
 
#define LLDB_INVALID_STOP_ID   0
 Invalid value definitions. More...
 
#define LLDB_INVALID_ADDRESS   UINT64_MAX
 
#define LLDB_INVALID_INDEX32   UINT32_MAX
 
#define LLDB_INVALID_IVAR_OFFSET   UINT32_MAX
 
#define LLDB_INVALID_IMAGE_TOKEN   UINT32_MAX
 
#define LLDB_INVALID_MODULE_VERSION   UINT32_MAX
 
#define LLDB_INVALID_REGNUM   UINT32_MAX
 
#define LLDB_INVALID_UID   UINT64_MAX
 
#define LLDB_INVALID_PROCESS_ID   0
 
#define LLDB_INVALID_THREAD_ID   0
 
#define LLDB_INVALID_FRAME_ID   UINT32_MAX
 
#define LLDB_INVALID_SIGNAL_NUMBER   INT32_MAX
 
#define LLDB_INVALID_OFFSET   UINT64_MAX
 
#define LLDB_INVALID_LINE_NUMBER   UINT32_MAX
 
#define LLDB_INVALID_COLUMN_NUMBER   0
 
#define LLDB_INVALID_QUEUE_ID   0
 
#define LLDB_ARCH_DEFAULT   "systemArch"
 CPU Type definitions. More...
 
#define LLDB_ARCH_DEFAULT_32BIT   "systemArch32"
 
#define LLDB_ARCH_DEFAULT_64BIT   "systemArch64"
 
#define LLDB_INVALID_CPUTYPE   (0xFFFFFFFEu)
 
#define LLDB_MAX_NUM_OPTION_SETS   32
 Option Set definitions. More...
 
#define LLDB_OPT_SET_ALL   0xFFFFFFFFU
 
#define LLDB_OPT_SET_1   (1U << 0)
 
#define LLDB_OPT_SET_2   (1U << 1)
 
#define LLDB_OPT_SET_3   (1U << 2)
 
#define LLDB_OPT_SET_4   (1U << 3)
 
#define LLDB_OPT_SET_5   (1U << 4)
 
#define LLDB_OPT_SET_6   (1U << 5)
 
#define LLDB_OPT_SET_7   (1U << 6)
 
#define LLDB_OPT_SET_8   (1U << 7)
 
#define LLDB_OPT_SET_9   (1U << 8)
 
#define LLDB_OPT_SET_10   (1U << 9)
 
#define LLDB_OPT_SET_11   (1U << 10)
 
#define LLDB_OPT_SET_12   (1U << 11)
 
#define LLDB_OPT_SET_FROM_TO(A, B)   (((1U << (B)) - 1) ^ (((1U << (A)) - 1) >> 1))
 
#define UNUSED_IF_ASSERT_DISABLED(x)   ((void)(x))
 

Macro Definition Documentation

◆ INT32_MAX

#define INT32_MAX   2147483647

Definition at line 27 of file lldb-defines.h.

◆ LLDB_API

#define LLDB_API

Definition at line 23 of file lldb-defines.h.

◆ LLDB_ARCH_DEFAULT

#define LLDB_ARCH_DEFAULT   "systemArch"

CPU Type definitions.

Definition at line 103 of file lldb-defines.h.

◆ LLDB_ARCH_DEFAULT_32BIT

#define LLDB_ARCH_DEFAULT_32BIT   "systemArch32"

Definition at line 104 of file lldb-defines.h.

◆ LLDB_ARCH_DEFAULT_64BIT

#define LLDB_ARCH_DEFAULT_64BIT   "systemArch64"

Definition at line 105 of file lldb-defines.h.

◆ LLDB_BREAK_ID_IS_INTERNAL

#define LLDB_BREAK_ID_IS_INTERNAL (   bid)    ((bid) < 0)

Definition at line 52 of file lldb-defines.h.

◆ LLDB_BREAK_ID_IS_VALID

#define LLDB_BREAK_ID_IS_VALID (   bid)    ((bid) != (LLDB_INVALID_BREAK_ID))

Definition at line 51 of file lldb-defines.h.

◆ LLDB_DEFAULT_BREAK_SIZE

#define LLDB_DEFAULT_BREAK_SIZE   0

Definition at line 50 of file lldb-defines.h.

◆ LLDB_GENERIC_ERROR

#define LLDB_GENERIC_ERROR   UINT32_MAX

Definition at line 46 of file lldb-defines.h.

◆ LLDB_INVALID_ADDRESS

#define LLDB_INVALID_ADDRESS   UINT64_MAX

Definition at line 86 of file lldb-defines.h.

◆ LLDB_INVALID_BREAK_ID

#define LLDB_INVALID_BREAK_ID   0

Definition at line 49 of file lldb-defines.h.

◆ LLDB_INVALID_COLUMN_NUMBER

#define LLDB_INVALID_COLUMN_NUMBER   0

Definition at line 99 of file lldb-defines.h.

◆ LLDB_INVALID_CPUTYPE

#define LLDB_INVALID_CPUTYPE   (0xFFFFFFFEu)

Definition at line 106 of file lldb-defines.h.

◆ LLDB_INVALID_FRAME_ID

#define LLDB_INVALID_FRAME_ID   UINT32_MAX

Definition at line 95 of file lldb-defines.h.

◆ LLDB_INVALID_IMAGE_TOKEN

#define LLDB_INVALID_IMAGE_TOKEN   UINT32_MAX

Definition at line 89 of file lldb-defines.h.

◆ LLDB_INVALID_INDEX32

#define LLDB_INVALID_INDEX32   UINT32_MAX

Definition at line 87 of file lldb-defines.h.

◆ LLDB_INVALID_IVAR_OFFSET

#define LLDB_INVALID_IVAR_OFFSET   UINT32_MAX

Definition at line 88 of file lldb-defines.h.

◆ LLDB_INVALID_LINE_NUMBER

#define LLDB_INVALID_LINE_NUMBER   UINT32_MAX

Definition at line 98 of file lldb-defines.h.

◆ LLDB_INVALID_MODULE_VERSION

#define LLDB_INVALID_MODULE_VERSION   UINT32_MAX

Definition at line 90 of file lldb-defines.h.

◆ LLDB_INVALID_OFFSET

#define LLDB_INVALID_OFFSET   UINT64_MAX

Definition at line 97 of file lldb-defines.h.

◆ LLDB_INVALID_PROCESS_ID

#define LLDB_INVALID_PROCESS_ID   0

Definition at line 93 of file lldb-defines.h.

◆ LLDB_INVALID_QUEUE_ID

#define LLDB_INVALID_QUEUE_ID   0

Definition at line 100 of file lldb-defines.h.

◆ LLDB_INVALID_REGNUM

#define LLDB_INVALID_REGNUM   UINT32_MAX

Definition at line 91 of file lldb-defines.h.

◆ LLDB_INVALID_SIGNAL_NUMBER

#define LLDB_INVALID_SIGNAL_NUMBER   INT32_MAX

Definition at line 96 of file lldb-defines.h.

◆ LLDB_INVALID_STOP_ID

#define LLDB_INVALID_STOP_ID   0

Invalid value definitions.

Definition at line 85 of file lldb-defines.h.

◆ LLDB_INVALID_THREAD_ID

#define LLDB_INVALID_THREAD_ID   0

Definition at line 94 of file lldb-defines.h.

◆ LLDB_INVALID_UID

#define LLDB_INVALID_UID   UINT64_MAX

Definition at line 92 of file lldb-defines.h.

◆ LLDB_INVALID_WATCH_ID

#define LLDB_INVALID_WATCH_ID   0

Definition at line 55 of file lldb-defines.h.

◆ LLDB_MAX_NUM_OPTION_SETS

#define LLDB_MAX_NUM_OPTION_SETS   32

Option Set definitions.

Definition at line 111 of file lldb-defines.h.

◆ LLDB_OPT_SET_1

#define LLDB_OPT_SET_1   (1U << 0)

Definition at line 113 of file lldb-defines.h.

◆ LLDB_OPT_SET_10

#define LLDB_OPT_SET_10   (1U << 9)

Definition at line 122 of file lldb-defines.h.

◆ LLDB_OPT_SET_11

#define LLDB_OPT_SET_11   (1U << 10)

Definition at line 123 of file lldb-defines.h.

◆ LLDB_OPT_SET_12

#define LLDB_OPT_SET_12   (1U << 11)

Definition at line 124 of file lldb-defines.h.

◆ LLDB_OPT_SET_2

#define LLDB_OPT_SET_2   (1U << 1)

Definition at line 114 of file lldb-defines.h.

◆ LLDB_OPT_SET_3

#define LLDB_OPT_SET_3   (1U << 2)

Definition at line 115 of file lldb-defines.h.

◆ LLDB_OPT_SET_4

#define LLDB_OPT_SET_4   (1U << 3)

Definition at line 116 of file lldb-defines.h.

◆ LLDB_OPT_SET_5

#define LLDB_OPT_SET_5   (1U << 4)

Definition at line 117 of file lldb-defines.h.

◆ LLDB_OPT_SET_6

#define LLDB_OPT_SET_6   (1U << 5)

Definition at line 118 of file lldb-defines.h.

◆ LLDB_OPT_SET_7

#define LLDB_OPT_SET_7   (1U << 6)

Definition at line 119 of file lldb-defines.h.

◆ LLDB_OPT_SET_8

#define LLDB_OPT_SET_8   (1U << 7)

Definition at line 120 of file lldb-defines.h.

◆ LLDB_OPT_SET_9

#define LLDB_OPT_SET_9   (1U << 8)

Definition at line 121 of file lldb-defines.h.

◆ LLDB_OPT_SET_ALL

#define LLDB_OPT_SET_ALL   0xFFFFFFFFU

Definition at line 112 of file lldb-defines.h.

◆ LLDB_OPT_SET_FROM_TO

#define LLDB_OPT_SET_FROM_TO (   A,
 
)    (((1U << (B)) - 1) ^ (((1U << (A)) - 1) >> 1))

Definition at line 125 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_ARG1

#define LLDB_REGNUM_GENERIC_ARG1   5

Definition at line 68 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_ARG2

#define LLDB_REGNUM_GENERIC_ARG2   6

Definition at line 70 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_ARG3

#define LLDB_REGNUM_GENERIC_ARG3   7

Definition at line 72 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_ARG4

#define LLDB_REGNUM_GENERIC_ARG4   8

Definition at line 74 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_ARG5

#define LLDB_REGNUM_GENERIC_ARG5   9

Definition at line 76 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_ARG6

#define LLDB_REGNUM_GENERIC_ARG6   10

Definition at line 78 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_ARG7

#define LLDB_REGNUM_GENERIC_ARG7   11

Definition at line 80 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_ARG8

#define LLDB_REGNUM_GENERIC_ARG8   12

Definition at line 82 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_FLAGS

#define LLDB_REGNUM_GENERIC_FLAGS   4

Definition at line 67 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_FP

#define LLDB_REGNUM_GENERIC_FP   2

Definition at line 65 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_PC

#define LLDB_REGNUM_GENERIC_PC   0

Definition at line 63 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_RA

#define LLDB_REGNUM_GENERIC_RA   3

Definition at line 66 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_SP

#define LLDB_REGNUM_GENERIC_SP   1

Definition at line 64 of file lldb-defines.h.

◆ LLDB_WATCH_ID_IS_VALID

#define LLDB_WATCH_ID_IS_VALID (   uid)    ((uid) != (LLDB_INVALID_WATCH_ID))

Definition at line 56 of file lldb-defines.h.

◆ LLDB_WATCH_TYPE_IS_VALID

#define LLDB_WATCH_TYPE_IS_VALID (   type)    ((type | LLDB_WATCH_TYPE_READ) || (type | LLDB_WATCH_TYPE_WRITE))

Definition at line 59 of file lldb-defines.h.

◆ LLDB_WATCH_TYPE_READ

#define LLDB_WATCH_TYPE_READ   (1u << 0)

Definition at line 57 of file lldb-defines.h.

◆ LLDB_WATCH_TYPE_WRITE

#define LLDB_WATCH_TYPE_WRITE   (1u << 1)

Definition at line 58 of file lldb-defines.h.

◆ UINT32_MAX

#define UINT32_MAX   4294967295U

Definition at line 31 of file lldb-defines.h.

◆ UINT64_MAX

#define UINT64_MAX   18446744073709551615ULL

Definition at line 35 of file lldb-defines.h.

◆ UNUSED_IF_ASSERT_DISABLED

#define UNUSED_IF_ASSERT_DISABLED (   x)    ((void)(x))

Definition at line 137 of file lldb-defines.h.