LLDB mainline
Macros
lldb-defines.h File Reference
#include "lldb/lldb-types.h"

Go to the source code of this file.

Macros

#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_MODIFY   (1u << 2)
 
#define LLDB_WATCH_TYPE_IS_VALID(type)
 
#define LLDB_INVALID_SITE_ID   UINT32_MAX
 
#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_REGNUM_GENERIC_TP    13
 
#define LLDB_INVALID_STOP_ID   0
 Invalid value definitions.
 
#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_INVALID_CPU_ID   UINT32_MAX
 
#define LLDB_INVALID_WATCHPOINT_RESOURCE_ID   UINT32_MAX
 
#define LLDB_ARCH_DEFAULT   "systemArch"
 CPU Type definitions.
 
#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.
 
#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 LLDB_INVALID_ADDRESS_MASK   UINT64_MAX
 Address Mask Bits not used for addressing are set to 1 in the mask; all mask bits set is an invalid value.
 
#define UNUSED_IF_ASSERT_DISABLED(x)   ((void)(x))
 
#define LLDB_DEPRECATED(MSG)    [[deprecated("This method is no longer supported: " MSG)]]
 
#define LLDB_DEPRECATED_FIXME(MSG, FIX)   LLDB_DEPRECATED(MSG)
 

Macro Definition Documentation

◆ INT32_MAX

#define INT32_MAX   2147483647

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

◆ LLDB_ARCH_DEFAULT

#define LLDB_ARCH_DEFAULT   "systemArch"

CPU Type definitions.

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

◆ LLDB_ARCH_DEFAULT_32BIT

#define LLDB_ARCH_DEFAULT_32BIT   "systemArch32"

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

◆ LLDB_ARCH_DEFAULT_64BIT

#define LLDB_ARCH_DEFAULT_64BIT   "systemArch64"

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

◆ LLDB_BREAK_ID_IS_INTERNAL

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

Definition at line 40 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 39 of file lldb-defines.h.

◆ LLDB_DEFAULT_BREAK_SIZE

#define LLDB_DEFAULT_BREAK_SIZE   0

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

◆ LLDB_DEPRECATED

#define LLDB_DEPRECATED (   MSG)     [[deprecated("This method is no longer supported: " MSG)]]

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

◆ LLDB_DEPRECATED_FIXME

#define LLDB_DEPRECATED_FIXME (   MSG,
  FIX 
)    LLDB_DEPRECATED(MSG)

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

◆ LLDB_GENERIC_ERROR

#define LLDB_GENERIC_ERROR   UINT32_MAX

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

◆ LLDB_INVALID_ADDRESS

#define LLDB_INVALID_ADDRESS   UINT64_MAX

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

◆ LLDB_INVALID_ADDRESS_MASK

#define LLDB_INVALID_ADDRESS_MASK   UINT64_MAX

Address Mask Bits not used for addressing are set to 1 in the mask; all mask bits set is an invalid value.

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

◆ LLDB_INVALID_BREAK_ID

#define LLDB_INVALID_BREAK_ID   0

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

◆ LLDB_INVALID_COLUMN_NUMBER

#define LLDB_INVALID_COLUMN_NUMBER   0

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

◆ LLDB_INVALID_CPU_ID

#define LLDB_INVALID_CPU_ID   UINT32_MAX

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

◆ LLDB_INVALID_CPUTYPE

#define LLDB_INVALID_CPUTYPE   (0xFFFFFFFEu)

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

◆ LLDB_INVALID_FRAME_ID

#define LLDB_INVALID_FRAME_ID   UINT32_MAX

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

◆ LLDB_INVALID_IMAGE_TOKEN

#define LLDB_INVALID_IMAGE_TOKEN   UINT32_MAX

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

◆ LLDB_INVALID_INDEX32

#define LLDB_INVALID_INDEX32   UINT32_MAX

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

◆ LLDB_INVALID_IVAR_OFFSET

#define LLDB_INVALID_IVAR_OFFSET   UINT32_MAX

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

◆ LLDB_INVALID_LINE_NUMBER

#define LLDB_INVALID_LINE_NUMBER   UINT32_MAX

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

◆ LLDB_INVALID_MODULE_VERSION

#define LLDB_INVALID_MODULE_VERSION   UINT32_MAX

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

◆ LLDB_INVALID_OFFSET

#define LLDB_INVALID_OFFSET   UINT64_MAX

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

◆ LLDB_INVALID_PROCESS_ID

#define LLDB_INVALID_PROCESS_ID   0

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

◆ LLDB_INVALID_QUEUE_ID

#define LLDB_INVALID_QUEUE_ID   0

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

◆ LLDB_INVALID_REGNUM

#define LLDB_INVALID_REGNUM   UINT32_MAX

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

◆ LLDB_INVALID_SIGNAL_NUMBER

#define LLDB_INVALID_SIGNAL_NUMBER   INT32_MAX

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

◆ LLDB_INVALID_SITE_ID

#define LLDB_INVALID_SITE_ID   UINT32_MAX

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

◆ LLDB_INVALID_STOP_ID

#define LLDB_INVALID_STOP_ID   0

Invalid value definitions.

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

◆ LLDB_INVALID_THREAD_ID

#define LLDB_INVALID_THREAD_ID   0

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

◆ LLDB_INVALID_UID

#define LLDB_INVALID_UID   UINT64_MAX

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

◆ LLDB_INVALID_WATCH_ID

#define LLDB_INVALID_WATCH_ID   0

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

◆ LLDB_INVALID_WATCHPOINT_RESOURCE_ID

#define LLDB_INVALID_WATCHPOINT_RESOURCE_ID   UINT32_MAX

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

◆ LLDB_MAX_NUM_OPTION_SETS

#define LLDB_MAX_NUM_OPTION_SETS   32

Option Set definitions.

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

◆ LLDB_OPT_SET_1

#define LLDB_OPT_SET_1   (1U << 0)

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

◆ LLDB_OPT_SET_10

#define LLDB_OPT_SET_10   (1U << 9)

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

◆ LLDB_OPT_SET_11

#define LLDB_OPT_SET_11   (1U << 10)

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

◆ LLDB_OPT_SET_12

#define LLDB_OPT_SET_12   (1U << 11)

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

◆ LLDB_OPT_SET_2

#define LLDB_OPT_SET_2   (1U << 1)

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

◆ LLDB_OPT_SET_3

#define LLDB_OPT_SET_3   (1U << 2)

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

◆ LLDB_OPT_SET_4

#define LLDB_OPT_SET_4   (1U << 3)

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

◆ LLDB_OPT_SET_5

#define LLDB_OPT_SET_5   (1U << 4)

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

◆ LLDB_OPT_SET_6

#define LLDB_OPT_SET_6   (1U << 5)

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

◆ LLDB_OPT_SET_7

#define LLDB_OPT_SET_7   (1U << 6)

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

◆ LLDB_OPT_SET_8

#define LLDB_OPT_SET_8   (1U << 7)

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

◆ LLDB_OPT_SET_9

#define LLDB_OPT_SET_9   (1U << 8)

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

◆ LLDB_OPT_SET_ALL

#define LLDB_OPT_SET_ALL   0xFFFFFFFFU

Definition at line 110 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 123 of file lldb-defines.h.

◆ LLDB_REGNUM_GENERIC_ARG1

#define LLDB_REGNUM_GENERIC_ARG1    5

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

◆ LLDB_REGNUM_GENERIC_ARG2

#define LLDB_REGNUM_GENERIC_ARG2    6

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

◆ LLDB_REGNUM_GENERIC_ARG3

#define LLDB_REGNUM_GENERIC_ARG3    7

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

◆ LLDB_REGNUM_GENERIC_ARG4

#define LLDB_REGNUM_GENERIC_ARG4    8

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

◆ LLDB_REGNUM_GENERIC_ARG5

#define LLDB_REGNUM_GENERIC_ARG5    9

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

◆ LLDB_REGNUM_GENERIC_ARG6

#define LLDB_REGNUM_GENERIC_ARG6    10

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

◆ LLDB_REGNUM_GENERIC_ARG7

#define LLDB_REGNUM_GENERIC_ARG7    11

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

◆ LLDB_REGNUM_GENERIC_ARG8

#define LLDB_REGNUM_GENERIC_ARG8    12

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

◆ LLDB_REGNUM_GENERIC_FLAGS

#define LLDB_REGNUM_GENERIC_FLAGS   4

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

◆ LLDB_REGNUM_GENERIC_FP

#define LLDB_REGNUM_GENERIC_FP   2

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

◆ LLDB_REGNUM_GENERIC_PC

#define LLDB_REGNUM_GENERIC_PC   0

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

◆ LLDB_REGNUM_GENERIC_RA

#define LLDB_REGNUM_GENERIC_RA   3

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

◆ LLDB_REGNUM_GENERIC_SP

#define LLDB_REGNUM_GENERIC_SP   1

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

◆ LLDB_REGNUM_GENERIC_TP

#define LLDB_REGNUM_GENERIC_TP    13

Definition at line 77 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 44 of file lldb-defines.h.

◆ LLDB_WATCH_TYPE_IS_VALID

#define LLDB_WATCH_TYPE_IS_VALID (   type)
Value:
((type & LLDB_WATCH_TYPE_READ) || (type & LLDB_WATCH_TYPE_WRITE) || \
#define LLDB_WATCH_TYPE_WRITE
Definition: lldb-defines.h:46
#define LLDB_WATCH_TYPE_MODIFY
Definition: lldb-defines.h:47
#define LLDB_WATCH_TYPE_READ
Definition: lldb-defines.h:45

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

◆ LLDB_WATCH_TYPE_MODIFY

#define LLDB_WATCH_TYPE_MODIFY   (1u << 2)

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

◆ LLDB_WATCH_TYPE_READ

#define LLDB_WATCH_TYPE_READ   (1u << 0)

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

◆ LLDB_WATCH_TYPE_WRITE

#define LLDB_WATCH_TYPE_WRITE   (1u << 1)

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

◆ UINT32_MAX

#define UINT32_MAX   4294967295U

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

◆ UINT64_MAX

#define UINT64_MAX   18446744073709551615ULL

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

◆ UNUSED_IF_ASSERT_DISABLED

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

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