LLDB mainline
lldb-enumerations.h
Go to the documentation of this file.
1//===-- lldb-enumerations.h -------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_LLDB_ENUMERATIONS_H
10#define LLDB_LLDB_ENUMERATIONS_H
11
12#include <cstdint>
13#include <type_traits>
14
15#ifndef SWIG
16// Macro to enable bitmask operations on an enum. Without this, Enum | Enum
17// gets promoted to an int, so you have to say Enum a = Enum(eFoo | eBar). If
18// you mark Enum with LLDB_MARK_AS_BITMASK_ENUM(Enum), however, you can simply
19// write Enum a = eFoo | eBar.
20// Unfortunately, swig<3.0 doesn't recognise the constexpr keyword, so remove
21// this entire block, as it is not necessary for swig processing.
22#define LLDB_MARK_AS_BITMASK_ENUM(Enum) \
23 constexpr Enum operator|(Enum a, Enum b) { \
24 return static_cast<Enum>( \
25 static_cast<std::underlying_type<Enum>::type>(a) | \
26 static_cast<std::underlying_type<Enum>::type>(b)); \
27 } \
28 constexpr Enum operator&(Enum a, Enum b) { \
29 return static_cast<Enum>( \
30 static_cast<std::underlying_type<Enum>::type>(a) & \
31 static_cast<std::underlying_type<Enum>::type>(b)); \
32 } \
33 constexpr Enum operator~(Enum a) { \
34 return static_cast<Enum>( \
35 ~static_cast<std::underlying_type<Enum>::type>(a)); \
36 } \
37 inline Enum &operator|=(Enum &a, Enum b) { \
38 a = a | b; \
39 return a; \
40 } \
41 inline Enum &operator&=(Enum &a, Enum b) { \
42 a = a & b; \
43 return a; \
44 }
45#else
46#define LLDB_MARK_AS_BITMASK_ENUM(Enum)
47#endif
48
49#ifndef SWIG
50// With MSVC, the default type of an enum is always signed, even if one of the
51// enumerator values is too large to fit into a signed integer but would
52// otherwise fit into an unsigned integer. As a result of this, all of LLDB's
53// flag-style enumerations that specify something like eValueFoo = 1u << 31
54// result in negative values. This usually just results in a benign warning,
55// but in a few places we actually do comparisons on the enum values, which
56// would cause a real bug. Furthermore, there's no way to silence only this
57// warning, as it's part of -Wmicrosoft which also catches a whole slew of
58// other useful issues.
59//
60// To make matters worse, early versions of SWIG don't recognize the syntax of
61// specifying the underlying type of an enum (and Python doesn't care anyway)
62// so we need a way to specify the underlying type when the enum is being used
63// from C++ code, but just use a regular enum when swig is pre-processing.
64#define FLAGS_ENUM(Name) enum Name : unsigned
65#define FLAGS_ANONYMOUS_ENUM() enum : unsigned
66#else
67#define FLAGS_ENUM(Name) enum Name
68#define FLAGS_ANONYMOUS_ENUM() enum
69#endif
70
71namespace lldb {
72
73/// Process and Thread States.
76 /// Process is object is valid, but not currently loaded
78 /// Process is connected to remote debug services, but not launched or
79 /// attached to anything yet
81 /// Process is currently trying to attach
83 /// Process is in the process of launching
85 // The state changes eStateAttaching and eStateLaunching are both sent while
86 // the private state thread is either not yet started or paused. For that
87 // reason, they should only be signaled as public state changes, and not
88 // private state changes.
89 /// Process or thread is stopped and can be examined.
91 /// Process or thread is running and can't be examined.
93 /// Process or thread is in the process of stepping and can not be examined.
95 /// Process or thread has crashed and can be examined.
97 /// Process has been detached and can't be examined.
99 /// Process has exited and can't be examined.
101 /// Process or thread is in a suspended state as far as the debugger is
102 /// concerned while other processes or threads get the chance to run.
105};
106
107/// Launch Flags.
108FLAGS_ENUM(LaunchFlags){
109 eLaunchFlagNone = 0u,
110 /// Exec when launching and turn the calling process into a new process.
111 eLaunchFlagExec = (1u << 0),
112 /// Stop as soon as the process launches to allow the process to be
113 /// debugged.
114 eLaunchFlagDebug = (1u << 1),
115 /// Stop at the program entry point instead of auto-continuing when
116 /// launching or attaching at entry point.
117 eLaunchFlagStopAtEntry = (1u << 2),
118 /// Disable Address Space Layout Randomization.
119 eLaunchFlagDisableASLR = (1u << 3),
120 /// Disable stdio for inferior process (e.g. for a GUI app).
121 eLaunchFlagDisableSTDIO = (1u << 4),
122 /// Launch the process in a new TTY if supported by the host.
123 eLaunchFlagLaunchInTTY = (1u << 5),
124 /// Launch the process inside a shell to get shell expansion.
125 eLaunchFlagLaunchInShell = (1u << 6),
126 /// Launch the process in a separate process group. If you are going to hand
127 /// the process off (e.g. to debugserver).
128 eLaunchFlagLaunchInSeparateProcessGroup = (1u << 7),
129 /// Set this flag so lldb & the handee don't race to set its exit status.
130 eLaunchFlagDontSetExitStatus = (1u << 8),
131 /// If set, then the client stub should detach rather than killing the
132 /// debugee if it loses connection with lldb.
133 eLaunchFlagDetachOnError = (1u << 9),
134 /// Perform shell-style argument expansion.
135 eLaunchFlagShellExpandArguments = (1u << 10),
136 /// Close the open TTY on exit.
137 eLaunchFlagCloseTTYOnExit = (1u << 11),
138 /// Don't make the inferior responsible for its own TCC permissions but
139 /// instead inherit them from its parent.
140 eLaunchFlagInheritTCCFromParent = (1u << 12),
141 /// Launch process with memory tagging explicitly enabled.
142 eLaunchFlagMemoryTagging = (1u << 13),
143 /// Use anonymous pipes for stdio instead of a ConPTY on Windows. Useful
144 /// when terminal emulation is not needed (e.g. lldb-dap internalConsole
145 /// mode).
146 eLaunchFlagUsePipes = (1u << 14),
147};
148
149/// Thread Run Modes.
151
152/// Execution directions
154
155/// Byte ordering definitions.
162
163/// Register encoding definitions.
166 /// unsigned integer
168 /// signed integer
170 /// float
172 /// vector registers
174};
175
176/// Display format definitions.
177enum Format {
185 /// Only printable characters, '.' if not printable
187 /// Floating point complex type
190 /// NULL terminated C strings
198 /// OS character codes encoded into an integer 'PICT' 'text' etc...
217 /// Integer complex type
219 /// Print characters with no single quotes, used for character arrays that can
220 /// contain non printable characters
222 /// Describe what an address points to (func + offset with file/line, symbol +
223 /// offset, data, etc)
225 /// ISO C99 hex float string
227 /// Disassemble an opcode
229 /// Do not print this
232 /// Disambiguate between 128-bit `long double` (which uses `eFormatFloat`) and
233 /// `__float128` (which uses `eFormatFloat128`). If the value being formatted
234 /// is not 128 bits, then this is identical to `eFormatFloat`.
237};
238
239/// Description levels for "void GetDescription(Stream *, DescriptionLevel)"
240/// calls.
248
249/// Script interpreter types.
257
258/// Scripting extension types.
277
278/// Register numbering types.
279// See RegisterContext::ConvertRegisterKindToRegisterNumber to convert any of
280// these to the lldb internal register numbering scheme (eRegisterKindLLDB).
282 /// the register numbers seen in eh_frame
284 /// the register numbers seen DWARF
286 /// insn ptr reg, stack ptr reg, etc not specific to any particular target
288 /// num used by the process plugin - e.g. by the remote gdb-protocol stub
289 /// program
291 /// lldb's internal register numbers
294};
295
296/// Thread stop reasons.
320
321/// Command Return Status Types.
332
333/// The results of expression evaluation.
346
357
358/// Connection Status Types.
360 /// Success
362 /// End-of-file encountered
364 /// Check GetError() for details
366 /// Request timed out
368 /// No connection
370 /// Lost connection while connected to a valid connection
372 /// Interrupted read
374};
375
378 /// Generic errors that can be any value.
380 /// Mach kernel error codes.
382 /// POSIX error codes.
384 /// These are from the ExpressionResults enum.
386 /// Standard Win32 error codes.
388};
389
390enum ValueType : uint32_t {
392 /// globals variable
394 /// static variable
396 /// function argument variables
398 /// function local variables
400 /// stack frame register value
402 /// A collection of stack frame register values
404 /// constant result variables
406 /// thread local storage variable
408 /// virtual function table
410 /// function pointer in virtual function table
412
414
415 /// A flag that indicates if the value type is synthetic or not.
416 // NOTE: This limits the number of value types to 31, but that's 3x more than
417 // what we currently have now. See lldb/Utility/ValueType.h for helpers for
418 // working with synthetic value types.
420
422};
423
424/// Token size/granularities for Input Readers.
425
433
434/// These mask bits allow a common interface for queries that can limit the
435/// amount of information that gets parsed to only the information that is
436/// requested. These bits also can indicate what actually did get resolved
437/// during query function calls.
438///
439/// Each definition corresponds to a one of the member variables in this class,
440/// and requests that that item be resolved, or indicates that the member did
441/// get resolved.
442FLAGS_ENUM(SymbolContextItem){
443 /// Set when \a target is requested from a query, or was located in query
444 /// results
445 eSymbolContextTarget = (1u << 0),
446 /// Set when \a module is requested from a query, or was located in query
447 /// results
448 eSymbolContextModule = (1u << 1),
449 /// Set when \a comp_unit is requested from a query, or was located in query
450 /// results
451 eSymbolContextCompUnit = (1u << 2),
452 /// Set when \a function is requested from a query, or was located in query
453 /// results
454 eSymbolContextFunction = (1u << 3),
455 /// Set when the deepest \a block is requested from a query, or was located
456 /// in query results
457 eSymbolContextBlock = (1u << 4),
458 /// Set when \a line_entry is requested from a query, or was located in
459 /// query results
460 eSymbolContextLineEntry = (1u << 5),
461 /// Set when \a symbol is requested from a query, or was located in query
462 /// results
463 eSymbolContextSymbol = (1u << 6),
464 /// Indicates to try and lookup everything up during a routine symbol
465 /// context query.
466 eSymbolContextEverything = ((eSymbolContextSymbol << 1) - 1u),
467 /// Set when \a global or static variable is requested from a query, or was
468 /// located in query results. eSymbolContextVariable is potentially
469 /// expensive to lookup so it isn't included in eSymbolContextEverything
470 /// which stops it from being used during frame PC lookups and many other
471 /// potential address to symbol context lookups.
472 eSymbolContextVariable = (1u << 7),
473
474 // Keep this last and up-to-date for what the last enum value is.
475 eSymbolContextLastItem = eSymbolContextVariable,
476};
477LLDB_MARK_AS_BITMASK_ENUM(SymbolContextItem)
478
479FLAGS_ENUM(Permissions){ePermissionsWritable = (1u << 0),
480 ePermissionsReadable = (1u << 1),
481 ePermissionsExecutable = (1u << 2)};
482LLDB_MARK_AS_BITMASK_ENUM(Permissions)
483
485 /// reader is newly pushed onto the reader stack
487 /// an async output event occurred; the reader may want to do something
489 /// reader is on top of the stack again after another reader was popped off
491 /// another reader was pushed on the stack
493 /// reader got one of its tokens (granularity)
495 /// reader received an interrupt signal (probably from a control-c)
497 /// reader received an EOF char (probably from a control-d)
499 /// reader was just popped off the stack and is done
501};
502
503FLAGS_ENUM(BreakpointEventType){
504 eBreakpointEventTypeInvalidType = (1u << 0),
505 eBreakpointEventTypeAdded = (1u << 1),
506 eBreakpointEventTypeRemoved = (1u << 2),
507 /// Locations added doesn't get sent when the breakpoint is created
508 eBreakpointEventTypeLocationsAdded = (1u << 3),
509 eBreakpointEventTypeLocationsRemoved = (1u << 4),
510 eBreakpointEventTypeLocationsResolved = (1u << 5),
511 eBreakpointEventTypeEnabled = (1u << 6),
512 eBreakpointEventTypeDisabled = (1u << 7),
513 eBreakpointEventTypeCommandChanged = (1u << 8),
514 eBreakpointEventTypeConditionChanged = (1u << 9),
515 eBreakpointEventTypeIgnoreChanged = (1u << 10),
516 eBreakpointEventTypeThreadChanged = (1u << 11),
517 eBreakpointEventTypeAutoContinueChanged = (1u << 12)};
518
519FLAGS_ENUM(WatchpointEventType){
520 eWatchpointEventTypeInvalidType = (1u << 0),
521 eWatchpointEventTypeAdded = (1u << 1),
522 eWatchpointEventTypeRemoved = (1u << 2),
523 eWatchpointEventTypeEnabled = (1u << 6),
524 eWatchpointEventTypeDisabled = (1u << 7),
525 eWatchpointEventTypeCommandChanged = (1u << 8),
526 eWatchpointEventTypeConditionChanged = (1u << 9),
527 eWatchpointEventTypeIgnoreChanged = (1u << 10),
528 eWatchpointEventTypeThreadChanged = (1u << 11),
529 eWatchpointEventTypeTypeChanged = (1u << 12)};
530
532 /// Don't stop when the watched memory region is written to.
534 /// Stop on any write access to the memory region, even if the value doesn't
535 /// change. On some architectures, a write near the memory region may be
536 /// falsely reported as a match, and notify this spurious stop as a watchpoint
537 /// trap.
539 /// Stop on a write to the memory region that changes its value. This is most
540 /// likely the behavior a user expects, and is the behavior in gdb. lldb can
541 /// silently ignore writes near the watched memory region that are reported as
542 /// accesses to lldb.
544};
545
546/// Programming language type.
547///
548/// These enumerations use the same language enumerations as the DWARF
549/// specification for ease of use and consistency. The enum -> string code is in
550/// Language.cpp, don't change this table without updating that code as well.
551///
552/// This datatype is used in SBExpressionOptions::SetLanguage() which makes this
553/// type API. Do not change its underlying storage type!
555 /// Unknown or invalid language value.
557 /// ISO C:1989.
559 /// Non-standardized C, such as K&R.
561 /// ISO Ada:1983.
563 /// ISO C++:1998.
565 /// ISO Cobol:1974.
567 /// ISO Cobol:1985.
569 /// ISO Fortran 77.
571 /// ISO Fortran 90.
573 /// ISO Pascal:1983.
575 /// ISO Modula-2:1996.
577 /// Java.
579 /// ISO C:1999.
581 /// ISO Ada:1995.
583 /// ISO Fortran 95.
585 /// ANSI PL/I:1976.
587 /// Objective-C.
589 /// Objective-C++.
591 /// Unified Parallel C.
593 /// D.
595 /// Python.
597 // NOTE: The below are DWARF5 constants, subject to change upon
598 // completion of the DWARF5 specification
599 /// OpenCL.
601 /// Go.
603 /// Modula 3.
605 /// Haskell.
607 /// ISO C++:2003.
609 /// ISO C++:2011.
611 /// OCaml.
613 /// Rust.
615 /// ISO C:2011.
617 /// Swift.
619 /// Julia.
621 /// Dylan.
623 /// ISO C++:2014.
625 /// ISO Fortran 2003.
627 /// ISO Fortran 2008.
634 /// ISO C++:2017.
636 /// ISO C++:2020.
647
648 // Vendor Extensions
649 // Note: Language::GetNameForLanguageType
650 // assumes these can be used as indexes into array language_names, and
651 // Language::SetLanguageFromCString and Language::AsCString assume these can
652 // be used as indexes into array g_languages.
653 /// Mips_Assembler.
656};
657
668
674
680
687
695
806 eArgTypeLastArg // Always keep this entry as the last entry in this
807 // enumeration!!
808};
809
810/// Symbol types.
811// Symbol holds the SymbolType in a 6-bit field (m_type), so if you get over 63
812// entries you will have to resize that field.
846
850 /// The section contains child sections
853 /// Inlined C string data
855 /// Pointers to C string data
857 /// Address of a symbol in the symbol table
865 /// Pointer to function pointer + selector
867 /// Objective-C const CFString/NSString objects
888 /// Elf SHT_SYMTAB section
890 /// Elf SHT_DYNSYM section
892 /// Elf SHT_REL or SHT_REL section
894 /// Elf SHT_DYNAMIC section
899 /// compact unwind section in Mach-O, __TEXT,__unwind_info
902 /// Dummy section for symbols with absolute address
905 /// DWARF .debug_types section
907 /// DWARF v5 .debug_names
910 /// DWARF v5 .debug_line_str
912 /// DWARF v5 .debug_rnglists
914 /// DWARF v5 .debug_loclists
931};
932
933FLAGS_ENUM(EmulateInstructionOptions){
934 eEmulateInstructionOptionNone = (0u),
935 eEmulateInstructionOptionAutoAdvancePC = (1u << 0),
936 eEmulateInstructionOptionIgnoreConditions = (1u << 1)};
937
938FLAGS_ENUM(FunctionNameType){
939 eFunctionNameTypeNone = 0u,
940 /// Automatically figure out which FunctionNameType bits to set based on the
941 /// function name.
942 eFunctionNameTypeAuto = (1u << 1),
943 /// The function name. For C this is the same as just the name of the
944 /// function. For C++ this is the mangled or demangled version of the
945 /// mangled name. For ObjC this is the full function signature with the + or
946 /// - and the square brackets and the class and selector.
947 eFunctionNameTypeFull = (1u << 2),
948 /// The function name only, no namespaces or arguments and no class methods
949 /// or selectors will be searched.
950 eFunctionNameTypeBase = (1u << 3),
951 /// Find function by method name (C++) with no namespace or arguments.
952 eFunctionNameTypeMethod = (1u << 4),
953 /// Find function by selector name (ObjC) names.
954 eFunctionNameTypeSelector = (1u << 5),
955 /// DEPRECATED: use eFunctionNameTypeAuto.
956 eFunctionNameTypeAny = eFunctionNameTypeAuto};
957LLDB_MARK_AS_BITMASK_ENUM(FunctionNameType)
958
959/// Basic types enumeration for the public API SBType::GetBasicType().
997
998/// Deprecated
1001
1002 /// Intel Processor Trace
1004};
1005
1019
1020FLAGS_ENUM(TypeClass){
1021 eTypeClassInvalid = (0u), eTypeClassArray = (1u << 0),
1022 eTypeClassBlockPointer = (1u << 1), eTypeClassBuiltin = (1u << 2),
1023 eTypeClassClass = (1u << 3), eTypeClassComplexFloat = (1u << 4),
1024 eTypeClassComplexInteger = (1u << 5), eTypeClassEnumeration = (1u << 6),
1025 eTypeClassFunction = (1u << 7), eTypeClassMemberPointer = (1u << 8),
1026 eTypeClassObjCObject = (1u << 9), eTypeClassObjCInterface = (1u << 10),
1027 eTypeClassObjCObjectPointer = (1u << 11), eTypeClassPointer = (1u << 12),
1028 eTypeClassReference = (1u << 13), eTypeClassStruct = (1u << 14),
1029 eTypeClassTypedef = (1u << 15), eTypeClassUnion = (1u << 16),
1030 eTypeClassVector = (1u << 17),
1031 // Define the last type class as the MSBit of a 32 bit value
1032 eTypeClassOther = (1u << 31),
1033 // Define a mask that can be used for any type when finding types
1034 eTypeClassAny = (0xffffffffu)};
1036
1049
1050/// Type of match to be performed when looking for a formatter for a data type.
1051/// Used by classes like SBTypeNameSpecifier or lldb_private::TypeMatcher.
1059
1060/// Options that can be set for a formatter to alter its behavior. Not all of
1061/// these are applicable to all formatter types.
1062FLAGS_ENUM(TypeOptions){eTypeOptionNone = (0u),
1063 eTypeOptionCascade = (1u << 0),
1064 eTypeOptionSkipPointers = (1u << 1),
1065 eTypeOptionSkipReferences = (1u << 2),
1066 eTypeOptionHideChildren = (1u << 3),
1067 eTypeOptionHideValue = (1u << 4),
1068 eTypeOptionShowOneLiner = (1u << 5),
1069 eTypeOptionHideNames = (1u << 6),
1070 eTypeOptionNonCacheable = (1u << 7),
1071 eTypeOptionHideEmptyAggregates = (1u << 8),
1072 eTypeOptionFrontEndWantsDereference = (1u << 9),
1073 eTypeOptionCustomSubscripting = (1u << 10)};
1074
1075/// This is the return value for frame comparisons. If you are comparing frame A
1076/// to frame B the following cases arise:
1077///
1078/// 1) When frame A pushes frame B (or a frame that ends up pushing B) A is
1079/// Older than B.
1080///
1081/// 2) When frame A pushed frame B (or if frameA is on the stack but B is
1082/// not) A is Younger than B.
1083///
1084/// 3) When frame A and frame B have the same StackID, they are Equal.
1085///
1086/// 4) When frame A and frame B have the same immediate parent frame, but are
1087/// not equal, the comparison yields SameParent.
1088///
1089/// 5) If the two frames are on different threads or processes the comparison
1090/// is Invalid.
1091///
1092/// 6) If for some reason we can't figure out what went on, we return Unknown.
1101
1102/// File Permissions.
1103///
1104/// Designed to mimic the unix file permission bits so they can be used with
1105/// functions that set 'mode_t' to certain values for permissions.
1106FLAGS_ENUM(FilePermissions){
1107 eFilePermissionsUserRead = (1u << 8),
1108 eFilePermissionsUserWrite = (1u << 7),
1109 eFilePermissionsUserExecute = (1u << 6),
1110 eFilePermissionsGroupRead = (1u << 5),
1111 eFilePermissionsGroupWrite = (1u << 4),
1112 eFilePermissionsGroupExecute = (1u << 3),
1113 eFilePermissionsWorldRead = (1u << 2),
1114 eFilePermissionsWorldWrite = (1u << 1),
1115 eFilePermissionsWorldExecute = (1u << 0),
1116
1117 eFilePermissionsUserRW = (eFilePermissionsUserRead |
1118 eFilePermissionsUserWrite | 0),
1119 eFileFilePermissionsUserRX = (eFilePermissionsUserRead | 0 |
1120 eFilePermissionsUserExecute),
1121 eFilePermissionsUserRWX = (eFilePermissionsUserRead |
1122 eFilePermissionsUserWrite |
1123 eFilePermissionsUserExecute),
1124
1125 eFilePermissionsGroupRW = (eFilePermissionsGroupRead |
1126 eFilePermissionsGroupWrite | 0),
1127 eFilePermissionsGroupRX = (eFilePermissionsGroupRead | 0 |
1128 eFilePermissionsGroupExecute),
1129 eFilePermissionsGroupRWX = (eFilePermissionsGroupRead |
1130 eFilePermissionsGroupWrite |
1131 eFilePermissionsGroupExecute),
1132
1133 eFilePermissionsWorldRW = (eFilePermissionsWorldRead |
1134 eFilePermissionsWorldWrite | 0),
1135 eFilePermissionsWorldRX = (eFilePermissionsWorldRead | 0 |
1136 eFilePermissionsWorldExecute),
1137 eFilePermissionsWorldRWX = (eFilePermissionsWorldRead |
1138 eFilePermissionsWorldWrite |
1139 eFilePermissionsWorldExecute),
1140
1141 eFilePermissionsEveryoneR = (eFilePermissionsUserRead |
1142 eFilePermissionsGroupRead |
1143 eFilePermissionsWorldRead),
1144 eFilePermissionsEveryoneW = (eFilePermissionsUserWrite |
1145 eFilePermissionsGroupWrite |
1146 eFilePermissionsWorldWrite),
1147 eFilePermissionsEveryoneX = (eFilePermissionsUserExecute |
1148 eFilePermissionsGroupExecute |
1149 eFilePermissionsWorldExecute),
1150
1151 eFilePermissionsEveryoneRW = (eFilePermissionsEveryoneR |
1152 eFilePermissionsEveryoneW | 0),
1153 eFilePermissionsEveryoneRX = (eFilePermissionsEveryoneR | 0 |
1154 eFilePermissionsEveryoneX),
1155 eFilePermissionsEveryoneRWX = (eFilePermissionsEveryoneR |
1156 eFilePermissionsEveryoneW |
1157 eFilePermissionsEveryoneX),
1158 eFilePermissionsFileDefault = eFilePermissionsUserRW,
1159 eFilePermissionsDirectoryDefault = eFilePermissionsUserRWX,
1160};
1161
1162/// Queue work item types.
1163///
1164/// The different types of work that can be enqueued on a libdispatch aka Grand
1165/// Central Dispatch (GCD) queue.
1171
1172/// Queue type.
1173///
1174/// libdispatch aka Grand Central Dispatch (GCD) queues can be either serial
1175/// (executing on one thread) or concurrent (executing on multiple threads).
1181
1182/// Expression Evaluation Stages.
1183///
1184/// These are the cancellable stages of expression evaluation, passed to the
1185/// expression evaluation callback, so that you can interrupt expression
1186/// evaluation at the various points in its lifecycle.
1193
1194/// Architecture-agnostic categorization of instructions for traversing the
1195/// control flow of a trace.
1196///
1197/// A single instruction can match one or more of these categories.
1199 /// The instruction could not be classified.
1201 /// The instruction is something not listed below, i.e. it's a sequential
1202 /// instruction that doesn't affect the control flow of the program.
1204 /// The instruction is a near (function) call.
1206 /// The instruction is a near (function) return.
1208 /// The instruction is a near unconditional jump.
1210 /// The instruction is a near conditional jump.
1212 /// The instruction is a call-like far transfer. E.g. SYSCALL, SYSENTER, or
1213 /// FAR CALL.
1215 /// The instruction is a return-like far transfer. E.g. SYSRET, SYSEXIT, IRET,
1216 /// or FAR RET.
1218 /// The instruction is a jump-like far transfer. E.g. FAR JMP.
1220};
1221
1222/// Watchpoint Kind.
1223///
1224/// Indicates what types of events cause the watchpoint to fire. Used by Native
1225/// *Protocol-related classes.
1226FLAGS_ENUM(WatchpointKind){eWatchpointKindWrite = (1u << 0),
1227 eWatchpointKindRead = (1u << 1)};
1228
1237
1238/// Used with SBHostOS::GetLLDBPath (lldb::PathType) to find files that are
1239/// related to LLDB on the current host machine. Most files are relative to LLDB
1240/// or are in known locations.
1242 /// The directory where the lldb.so (unix) or LLDB mach-o file in
1243 /// LLDB.framework (MacOSX) exists
1245 /// Find LLDB support executable directory (debugserver, etc)
1247 /// Find LLDB header file directory
1249 /// Find Python modules (PYTHONPATH) directory
1251 /// System plug-ins directory
1253 /// User plug-ins directory
1255 /// The LLDB temp directory for this system that will be cleaned up on exit
1257 /// The LLDB temp directory for this system, NOT cleaned up on a process exit.
1259 /// Find path to Clang builtin headers
1261};
1262
1263/// Kind of member function.
1264///
1265/// Used by the type system.
1267 /// Not sure what the type of this is
1269 /// A function used to create instances
1271 /// A function used to tear down existing instances
1273 /// A function that applies to a specific instance
1275 /// A function that applies to a type rather than any instance
1277};
1278
1279/// String matching algorithm used by SBTarget.
1286
1287/// Bitmask that describes details about a type.
1288FLAGS_ENUM(TypeFlags){
1289 eTypeHasChildren = (1u << 0), eTypeHasValue = (1u << 1),
1290 eTypeIsArray = (1u << 2), eTypeIsBlock = (1u << 3),
1291 eTypeIsBuiltIn = (1u << 4), eTypeIsClass = (1u << 5),
1292 eTypeIsCPlusPlus = (1u << 6), eTypeIsEnumeration = (1u << 7),
1293 eTypeIsFuncPrototype = (1u << 8), eTypeIsMember = (1u << 9),
1294 eTypeIsObjC = (1u << 10), eTypeIsPointer = (1u << 11),
1295 eTypeIsReference = (1u << 12), eTypeIsStructUnion = (1u << 13),
1296 eTypeIsTemplate = (1u << 14), eTypeIsTypedef = (1u << 15),
1297 eTypeIsVector = (1u << 16), eTypeIsScalar = (1u << 17),
1298 eTypeIsInteger = (1u << 18), eTypeIsFloat = (1u << 19),
1299 eTypeIsComplex = (1u << 20), eTypeIsSigned = (1u << 21),
1300 eTypeInstanceIsPointer = (1u << 22)};
1301
1302FLAGS_ENUM(CommandFlags){
1303 /// eCommandRequiresTarget
1304 ///
1305 /// Ensures a valid target is contained in m_exe_ctx prior to executing the
1306 /// command. If a target doesn't exist or is invalid, the command will fail
1307 /// and CommandObject::GetInvalidTargetDescription() will be returned as the
1308 /// error. CommandObject subclasses can override the virtual function for
1309 /// GetInvalidTargetDescription() to provide custom strings when needed.
1310 eCommandRequiresTarget = (1u << 0),
1311 /// eCommandRequiresProcess
1312 ///
1313 /// Ensures a valid process is contained in m_exe_ctx prior to executing the
1314 /// command. If a process doesn't exist or is invalid, the command will fail
1315 /// and CommandObject::GetInvalidProcessDescription() will be returned as
1316 /// the error. CommandObject subclasses can override the virtual function
1317 /// for GetInvalidProcessDescription() to provide custom strings when
1318 /// needed.
1319 eCommandRequiresProcess = (1u << 1),
1320 /// eCommandRequiresThread
1321 ///
1322 /// Ensures a valid thread is contained in m_exe_ctx prior to executing the
1323 /// command. If a thread doesn't exist or is invalid, the command will fail
1324 /// and CommandObject::GetInvalidThreadDescription() will be returned as the
1325 /// error. CommandObject subclasses can override the virtual function for
1326 /// GetInvalidThreadDescription() to provide custom strings when needed.
1327 eCommandRequiresThread = (1u << 2),
1328 /// eCommandRequiresFrame
1329 ///
1330 /// Ensures a valid frame is contained in m_exe_ctx prior to executing the
1331 /// command. If a frame doesn't exist or is invalid, the command will fail
1332 /// and CommandObject::GetInvalidFrameDescription() will be returned as the
1333 /// error. CommandObject subclasses can override the virtual function for
1334 /// GetInvalidFrameDescription() to provide custom strings when needed.
1335 eCommandRequiresFrame = (1u << 3),
1336 /// eCommandRequiresRegContext
1337 ///
1338 /// Ensures a valid register context (from the selected frame if there is a
1339 /// frame in m_exe_ctx, or from the selected thread from m_exe_ctx) is
1340 /// available from m_exe_ctx prior to executing the command. If a target
1341 /// doesn't exist or is invalid, the command will fail and
1342 /// CommandObject::GetInvalidRegContextDescription() will be returned as the
1343 /// error. CommandObject subclasses can override the virtual function for
1344 /// GetInvalidRegContextDescription() to provide custom strings when needed.
1345 eCommandRequiresRegContext = (1u << 4),
1346 /// eCommandTryTargetAPILock
1347 ///
1348 /// Attempts to acquire the target lock if a target is selected in the
1349 /// command interpreter. If the command object fails to acquire the API
1350 /// lock, the command will fail with an appropriate error message.
1351 eCommandTryTargetAPILock = (1u << 5),
1352 /// eCommandProcessMustBeLaunched
1353 ///
1354 /// Verifies that there is a launched process in m_exe_ctx, if there isn't,
1355 /// the command will fail with an appropriate error message.
1356 eCommandProcessMustBeLaunched = (1u << 6),
1357 /// eCommandProcessMustBePaused
1358 ///
1359 /// Verifies that there is a paused process in m_exe_ctx, if there isn't,
1360 /// the command will fail with an appropriate error message.
1361 eCommandProcessMustBePaused = (1u << 7),
1362 /// eCommandProcessMustBeTraced
1363 ///
1364 /// Verifies that the process is being traced by a Trace plug-in, if it
1365 /// isn't the command will fail with an appropriate error message.
1366 eCommandProcessMustBeTraced = (1u << 8),
1367 /// eCommandAllowsDummyTarget
1368 ///
1369 /// Indicates that the command can legitimately operate on the dummy target
1370 /// (e.g. `breakpoint set` priming future targets). Without this flag,
1371 /// CommandObject::GetTarget filters the dummy target out and returns null
1372 /// when no real target is selected.
1373 eCommandAllowsDummyTarget = (1u << 9)};
1374
1375/// Whether a summary should cap how much data it returns to users or not.
1380
1381/// The result from a command interpreter run.
1383 /// Command interpreter finished successfully.
1385 /// Stopped because the corresponding option was set and the inferior crashed.
1387 /// Stopped because the corresponding option was set and a command returned an
1388 /// error.
1390 /// Stopped because quit was requested.
1392};
1393
1394// Style of core file to create when calling SaveCore.
1402
1403/// Events that might happen during a trace session.
1405 /// Tracing was disabled for some time due to a software trigger.
1407 /// Tracing was disable for some time due to a hardware trigger.
1409 /// Event due to CPU change for a thread. This event is also fired when
1410 /// suddenly it's not possible to identify the cpu of a given thread.
1412 /// Event due to a CPU HW clock tick.
1414 /// The underlying tracing technology emitted a synchronization event used by
1415 /// trace processors.
1417};
1418
1419// Enum used to identify which kind of item a \a TraceCursor is pointing at
1425
1426/// Enum to indicate the reference point when invoking \a TraceCursor::Seek().
1427/// The following values are inspired by \a std::istream::seekg.
1429 /// The beginning of the trace, i.e the oldest item.
1431 /// The current position in the trace.
1433 /// The end of the trace, i.e the most recent item.
1435};
1436
1437/// Enum to control the verbosity level of `dwim-print` execution.
1439 /// Run `dwim-print` with no verbosity.
1441 /// Print a message when `dwim-print` uses `expression` evaluation.
1443 /// Always print a message indicating how `dwim-print` is evaluating its
1444 /// expression.
1446};
1447
1450 /// Watchpoint was created watching a variable
1452 /// Watchpoint was created watching the result of an expression that was
1453 /// evaluated at creation time.
1455};
1456
1462 eSymbolCompletion = (1ul << 3),
1463 eModuleCompletion = (1ul << 4),
1484 eCustomCompletion = (1ul << 25),
1485 eThreadIDCompletion = (1ul << 26),
1488 // This last enum element is just for input validation.
1489 // Add new completions before this element,
1490 // and then increment eTerminatorCompletion's shift value
1492};
1493
1494/// Specifies if children need to be re-computed after a call to \ref
1495/// SyntheticChildrenFrontEnd::Update.
1497 /// Children need to be recomputed dynamically.
1499
1500 /// Children did not change and don't need to be recomputed; re-use what we
1501 /// computed the last time we called Update.
1503};
1504
1510
1517
1518/// Used in the SBProcess AddressMask/FixAddress methods.
1525
1526/// Used in the SBProcess AddressMask/FixAddress methods.
1533
1534/// Used by the debugger to indicate which events are being broadcasted.
1546
1547/// Used for expressing severity in logs and diagnostics.
1551 eSeverityInfo, // Equivalent to Remark used in clang.
1552};
1553
1554/// Callback return value, indicating whether it handled printing the
1555/// CommandReturnObject or deferred doing so to the CommandInterpreter.
1557 /// The callback deferred printing the command return object.
1559 /// The callback handled printing the command return object.
1561};
1562
1563/// Used to determine when to show disassembly.
1570
1577
1579 eNameMatchStyleAuto = eFunctionNameTypeAuto,
1580 eNameMatchStyleFull = eFunctionNameTypeFull,
1581 eNameMatchStyleBase = eFunctionNameTypeBase,
1582 eNameMatchStyleMethod = eFunctionNameTypeMethod,
1583 eNameMatchStyleSelector = eFunctionNameTypeSelector,
1584 eNameMatchStyleRegex = eFunctionNameTypeSelector << 1
1585};
1586
1587/// Data Inspection Language (DIL) evaluation modes. DIL will only attempt
1588/// evaluating expressions that contain tokens allowed by a selected mode.
1590 /// Allowed: identifiers, operators: '.'.
1592 /// Allowed: identifiers, integers, operators: '.', '->', '*', '&', '[]'.
1594 /// Allowed: everything supported by DIL. \see lldb/docs/dil-expr-lang.ebnf
1596};
1597
1598/// When the Process plugin can retrieve information about all binaries loaded
1599/// in the target process, or given a list of binary load addresses, this enum
1600/// specifies how much information needed from the Process plugin; there may be
1601/// performance reasons to limit the amount of information returned.
1608
1609/// This reflects the BreakpointResolver::ResolverTy, but this is a convenient
1610/// enum for making a mask to pass to RegisterOverrideResolver. It has to be
1611/// kept in sync with the ResolverTy.
1612FLAGS_ENUM(BreakpointResolverType){
1613 eResolverUnknown = 0, eResolverFileAndLine = (1 << 0),
1614 eResolverAddress = (1 << 1), eResolverName = (1 << 2),
1615 eResolverFileRegex = (1 << 3), eResolverPython = (1 << 4),
1616 eResolverException = (1 << 5), eResolverLastKnown = eResolverException,
1617};
1619 eResolverFileAndLine | eResolverAddress | eResolverName |
1620 eResolverFileRegex | eResolverPython | eResolverException;
1621
1622} // namespace lldb
1623
1624#endif // LLDB_LLDB_ENUMERATIONS_H
#define LLDB_MARK_AS_BITMASK_ENUM(Enum)
#define FLAGS_ENUM(Name)
@ eInputReaderEndOfFile
reader received an EOF char (probably from a control-d)
@ eInputReaderActivate
reader is newly pushed onto the reader stack
@ eInputReaderInterrupt
reader received an interrupt signal (probably from a control-c)
@ eInputReaderReactivate
reader is on top of the stack again after another reader was popped off
@ eInputReaderDeactivate
another reader was pushed on the stack
@ eInputReaderAsynchronousOutputWritten
an async output event occurred; the reader may want to do something
@ eInputReaderDone
reader was just popped off the stack and is done
@ eInputReaderGotToken
reader got one of its tokens (granularity)
@ eRemoteDiskDirectoryCompletion
@ eFrameIndexCompletion
@ eModuleUUIDCompletion
@ eDisassemblyFlavorCompletion
@ eVariablePathCompletion
@ eDiskDirectoryCompletion
@ eTypeCategoryNameCompletion
@ ePlatformPluginCompletion
@ eSettingsNameCompletion
@ eSourceFileCompletion
@ eTypeLanguageCompletion
@ eStopHookIDCompletion
@ eWatchpointIDCompletion
@ eBreakpointNameCompletion
@ eProcessPluginCompletion
@ eRemoteDiskFileCompletion
@ eBreakpointCompletion
@ eThreadIndexCompletion
@ eArchitectureCompletion
@ eScriptedExtensionCompletion
@ eProcessNameCompletion
@ eManagedPluginCompletion
@ eTerminatorCompletion
constexpr unsigned BreakpointResolverAllResolversMask
TypeSummaryCapping
Whether a summary should cap how much data it returns to users or not.
ScriptLanguage
Script interpreter types.
@ eScriptLanguageUnknown
@ eScriptLanguageDefault
@ eScriptLanguageNone
@ eScriptLanguagePython
MatchType
String matching algorithm used by SBTarget.
@ eMatchTypeRegexInsensitive
ExpressionEvaluationPhase
Expression Evaluation Stages.
@ eExpressionEvaluationComplete
@ eExpressionEvaluationParse
@ eExpressionEvaluationExecution
@ eExpressionEvaluationIRGen
ScriptedExtension
Scripting extension types.
@ eScriptedExtensionOperatingSystem
@ eScriptedExtensionScriptedHook
@ eScriptedExtensionParsedCommand
@ eScriptedExtensionScriptedPlatform
@ eScriptedExtensionScriptedCommand
@ eScriptedExtensionScriptedProcess
@ eScriptedExtensionScriptedFrame
@ eScriptedExtensionScriptedBreakpointResolver
@ kLastScriptedExtension
@ eScriptedExtensionScriptedThreadPlan
@ eScriptedExtensionScriptedStringSummary
@ eScriptedExtensionScriptedFrameProvider
@ eScriptedExtensionScriptedThread
@ eScriptedExtensionScriptedStackFrameRecognizer
@ eScriptedExtensionScriptedSyntheticChildren
@ eScriptedExtensionInvalid
Severity
Used for expressing severity in logs and diagnostics.
TraceType
Deprecated.
@ eTraceTypeProcessorTrace
Intel Processor Trace.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
@ eDescriptionLevelBrief
@ kNumDescriptionLevels
@ eDescriptionLevelInitial
@ eDescriptionLevelFull
@ eDescriptionLevelVerbose
DebuggerBroadcastBit
Used by the debugger to indicate which events are being broadcasted.
@ eBroadcastBitProgressCategory
Deprecated.
@ eBroadcastBitExternalProgress
@ eBroadcastBitProgress
@ eBroadcastSymbolChange
@ eBroadcastBitExternalProgressCategory
Deprecated.
BasicType
Basic types enumeration for the public API SBType::GetBasicType().
@ eBasicTypeUnsignedShort
@ eBasicTypeSignedChar
@ eBasicTypeUnsignedInt128
@ eBasicTypeFloatComplex
@ eBasicTypeUnsignedWChar
@ eBasicTypeUnsignedLong
@ eBasicTypeLongDoubleComplex
@ eBasicTypeSignedWChar
@ eBasicTypeUnsignedChar
@ eBasicTypeUnsignedLongLong
@ eBasicTypeDoubleComplex
@ eBasicTypeLongDouble
@ eBasicTypeUnsignedInt
@ eBasicTypeObjCClass
RunDirection
Execution directions.
@ eWatchpointWriteTypeOnModify
Stop on a write to the memory region that changes its value.
@ eWatchpointWriteTypeAlways
Stop on any write access to the memory region, even if the value doesn't change.
@ eWatchpointWriteTypeDisabled
Don't stop when the watched memory region is written to.
ChildCacheState
Specifies if children need to be re-computed after a call to SyntheticChildrenFrontEnd::Update.
@ eRefetch
Children need to be recomputed dynamically.
@ eReuse
Children did not change and don't need to be recomputed; re-use what we computed the last time we cal...
@ eWatchPointValueKindInvalid
@ eWatchPointValueKindExpression
Watchpoint was created watching the result of an expression that was evaluated at creation time.
@ eWatchPointValueKindVariable
Watchpoint was created watching a variable.
@ ePluginDomainKindTarget
@ ePluginDomainKindGlobal
@ ePluginDomainKindDebugger
AddressMaskRange
Used in the SBProcess AddressMask/FixAddress methods.
@ eAddressMaskRangeHigh
CommandInterpreterResult
The result from a command interpreter run.
@ eCommandInterpreterResultInferiorCrash
Stopped because the corresponding option was set and the inferior crashed.
@ eCommandInterpreterResultSuccess
Command interpreter finished successfully.
@ eCommandInterpreterResultCommandError
Stopped because the corresponding option was set and a command returned an error.
@ eCommandInterpreterResultQuitRequested
Stopped because quit was requested.
ConnectionStatus
Connection Status Types.
@ eConnectionStatusError
Check GetError() for details.
@ eConnectionStatusInterrupted
Interrupted read.
@ eConnectionStatusTimedOut
Request timed out.
@ eConnectionStatusEndOfFile
End-of-file encountered.
@ eConnectionStatusSuccess
Success.
@ eConnectionStatusLostConnection
Lost connection while connected to a valid connection.
@ eConnectionStatusNoConnection
No connection.
TraceEvent
Events that might happen during a trace session.
@ eTraceEventSyncPoint
The underlying tracing technology emitted a synchronization event used by trace processors.
@ eTraceEventCPUChanged
Event due to CPU change for a thread.
@ eTraceEventHWClockTick
Event due to a CPU HW clock tick.
@ eTraceEventDisabledHW
Tracing was disable for some time due to a hardware trigger.
@ eTraceEventDisabledSW
Tracing was disabled for some time due to a software trigger.
Format
Display format definitions.
@ eFormatCString
NULL terminated C strings.
@ eFormatCharArray
Print characters with no single quotes, used for character arrays that can contain non printable char...
@ eFormatInstruction
Disassemble an opcode.
@ eFormatVectorOfChar
@ eFormatVectorOfUInt64
@ eFormatVoid
Do not print this.
@ eFormatVectorOfFloat16
@ eFormatVectorOfSInt64
@ eFormatComplex
Floating point complex type.
@ eFormatHexFloat
ISO C99 hex float string.
@ eFormatBytesWithASCII
@ eFormatOSType
OS character codes encoded into an integer 'PICT' 'text' etc...
@ eFormatAddressInfo
Describe what an address points to (func + offset with file/line, symbol + offset,...
@ eFormatVectorOfUInt128
@ eFormatVectorOfUInt8
@ eFormatComplexFloat
@ eFormatVectorOfFloat32
@ eFormatVectorOfSInt32
@ eFormatVectorOfSInt8
@ eFormatVectorOfUInt16
@ eFormatHexUppercase
@ eFormatVectorOfFloat64
@ eFormatCharPrintable
Only printable characters, '.' if not printable.
@ eFormatComplexInteger
Integer complex type.
@ eFormatVectorOfSInt16
@ eFormatFloat128
Disambiguate between 128-bit long double (which uses eFormatFloat) and __float128 (which uses eFormat...
@ eFormatVectorOfUInt32
FrameComparison
This is the return value for frame comparisons.
@ eFrameCompareSameParent
DWIMPrintVerbosity
Enum to control the verbosity level of dwim-print execution.
@ eDWIMPrintVerbosityFull
Always print a message indicating how dwim-print is evaluating its expression.
@ eDWIMPrintVerbosityNone
Run dwim-print with no verbosity.
@ eDWIMPrintVerbosityExpression
Print a message when dwim-print uses expression evaluation.
StateType
Process and Thread States.
@ eStateUnloaded
Process is object is valid, but not currently loaded.
@ eStateConnected
Process is connected to remote debug services, but not launched or attached to anything yet.
@ eStateDetached
Process has been detached and can't be examined.
@ eStateStopped
Process or thread is stopped and can be examined.
@ eStateSuspended
Process or thread is in a suspended state as far as the debugger is concerned while other processes o...
@ eStateRunning
Process or thread is running and can't be examined.
@ eStateLaunching
Process is in the process of launching.
@ eStateAttaching
Process is currently trying to attach.
@ eStateExited
Process has exited and can't be examined.
@ eStateStepping
Process or thread is in the process of stepping and can not be examined.
@ eStateCrashed
Process or thread has crashed and can be examined.
LanguageType
Programming language type.
@ eLanguageTypeC_plus_plus_20
ISO C++:2020.
@ eLanguageTypeC_plus_plus_14
ISO C++:2014.
@ eLanguageTypeHaskell
Haskell.
@ eLanguageTypeRenderScript
@ eLanguageTypePLI
ANSI PL/I:1976.
@ eLanguageTypeC11
ISO C:2011.
@ eLanguageTypeJava
Java.
@ eLanguageTypeFortran08
ISO Fortran 2008.
@ eLanguageTypeFortran18
@ eLanguageTypeC99
ISO C:1999.
@ eLanguageTypePascal83
ISO Pascal:1983.
@ eLanguageTypeModula3
Modula 3.
@ eLanguageTypeModula2
ISO Modula-2:1996.
@ eLanguageTypeOCaml
OCaml.
@ eLanguageTypeMipsAssembler
Mips_Assembler.
@ eLanguageTypeC_plus_plus_03
ISO C++:2003.
@ eLanguageTypeUnknown
Unknown or invalid language value.
@ eLanguageTypeRust
Rust.
@ eLanguageTypeFortran95
ISO Fortran 95.
@ eLanguageTypeC_sharp
@ eLanguageTypeAda2012
@ eLanguageTypeC_plus_plus_17
ISO C++:2017.
@ eLanguageTypeCrystal
@ eLanguageTypeObjC_plus_plus
Objective-C++.
@ eLanguageTypeC_plus_plus_11
ISO C++:2011.
@ eLanguageTypeSwift
Swift.
@ eLanguageTypeC89
ISO C:1989.
@ eLanguageTypeAda83
ISO Ada:1983.
@ eLanguageTypeJulia
Julia.
@ eLanguageTypeGo
Go.
@ eLanguageTypeFortran77
ISO Fortran 77.
@ eLanguageTypeKotlin
@ eLanguageTypeCobol85
ISO Cobol:1985.
@ eLanguageTypeUPC
Unified Parallel C.
@ eLanguageTypeC
Non-standardized C, such as K&R.
@ eLanguageTypeAda95
ISO Ada:1995.
@ eLanguageTypeCobol74
ISO Cobol:1974.
@ eLanguageTypePython
Python.
@ eLanguageTypeAda2005
@ eLanguageTypeOpenCL
OpenCL.
@ eLanguageTypeAssembly
@ eLanguageTypeD
D.
@ eLanguageTypeFortran90
ISO Fortran 90.
@ eLanguageTypeObjC
Objective-C.
@ eLanguageTypeC_plus_plus
ISO C++:1998.
@ eLanguageTypeLastStandardLanguage
@ eLanguageTypeDylan
Dylan.
@ eLanguageTypeFortran03
ISO Fortran 2003.
@ eSymbolSharedCacheUseHostSharedCache
@ eSymbolSharedCacheUseInferiorSharedCacheOnly
@ eSymbolSharedCacheUseHostLLDBMemory
@ eSymbolSharedCacheUseHostAndInferiorSharedCache
@ eNameMatchStyleSelector
@ eNameMatchStyleMethod
FLAGS_ENUM(LaunchFlags)
Launch Flags.
PathType
Used with SBHostOS::GetLLDBPath (lldb::PathType) to find files that are related to LLDB on the curren...
@ ePathTypeGlobalLLDBTempSystemDir
The LLDB temp directory for this system, NOT cleaned up on a process exit.
@ ePathTypeHeaderDir
Find LLDB header file directory.
@ ePathTypeLLDBSystemPlugins
System plug-ins directory.
@ ePathTypeLLDBTempSystemDir
The LLDB temp directory for this system that will be cleaned up on exit.
@ ePathTypeClangDir
Find path to Clang builtin headers.
@ ePathTypeLLDBUserPlugins
User plug-ins directory.
@ ePathTypeSupportExecutableDir
Find LLDB support executable directory (debugserver, etc)
@ ePathTypePythonDir
Find Python modules (PYTHONPATH) directory.
@ ePathTypeLLDBShlibDir
The directory where the lldb.so (unix) or LLDB mach-o file in LLDB.framework (MacOSX) exists.
@ eErrorTypeGeneric
Generic errors that can be any value.
@ eErrorTypeWin32
Standard Win32 error codes.
@ eErrorTypeExpression
These are from the ExpressionResults enum.
@ eErrorTypeMachKernel
Mach kernel error codes.
@ eErrorTypePOSIX
POSIX error codes.
FormatterMatchType
Type of match to be performed when looking for a formatter for a data type.
@ eLastFormatterMatchType
@ eFormatterMatchCallback
ExpressionResults
The results of expression evaluation.
@ eExpressionTimedOut
@ eExpressionCompleted
@ eExpressionHitBreakpoint
@ eExpressionInterrupted
@ eExpressionDiscarded
@ eExpressionParseError
@ eExpressionStoppedForDebug
@ eExpressionResultUnavailable
@ eExpressionThreadVanished
@ eExpressionSetupError
@ eTemplateArgumentKindTemplate
@ eTemplateArgumentKindTemplateExpansion
@ eTemplateArgumentKindNull
@ eTemplateArgumentKindNullPtr
@ eTemplateArgumentKindDeclaration
@ eTemplateArgumentKindIntegral
@ eTemplateArgumentKindPack
@ eTemplateArgumentKindType
@ eTemplateArgumentKindStructuralValue
@ eTemplateArgumentKindExpression
SymbolType
Symbol types.
@ eSymbolTypeUndefined
@ eSymbolTypeVariableType
@ eSymbolTypeObjCMetaClass
@ eSymbolTypeReExported
@ eSymbolTypeObjCClass
@ eSymbolTypeObjectFile
@ eSymbolTypeTrampoline
@ eSymbolTypeResolver
@ eSymbolTypeSourceFile
@ eSymbolTypeException
@ eSymbolTypeVariable
@ eSymbolTypeAbsolute
@ eSymbolTypeAdditional
When symbols take more than one entry, the extra entries get this type.
@ eSymbolTypeInstrumentation
@ eSymbolTypeHeaderFile
@ eSymbolTypeCommonBlock
@ eSymbolTypeCompiler
@ eSymbolTypeLineHeader
@ eSymbolTypeObjCIVar
@ eSymbolTypeLineEntry
@ eSymbolTypeScopeBegin
@ eSymbolTypeScopeEnd
Encoding
Register encoding definitions.
@ eEncodingIEEE754
float
@ eEncodingVector
vector registers
@ eEncodingUint
unsigned integer
@ eEncodingSint
signed integer
InstrumentationRuntimeType
@ eInstrumentationRuntimeTypeThreadSanitizer
@ eInstrumentationRuntimeTypeBoundsSafety
@ eInstrumentationRuntimeTypeMainThreadChecker
@ eInstrumentationRuntimeTypeLibsanitizersAsan
@ eInstrumentationRuntimeTypeAddressSanitizer
@ eNumInstrumentationRuntimeTypes
@ eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer
@ eInstrumentationRuntimeTypeSwiftRuntimeReporting
StopDisassemblyType
Used to determine when to show disassembly.
@ eStopDisassemblyTypeNever
@ eStopDisassemblyTypeNoSource
@ eStopDisassemblyTypeAlways
@ eStopDisassemblyTypeNoDebugInfo
@ eStopShowColumnAnsi
@ eStopShowColumnCaret
@ eStopShowColumnNone
@ eStopShowColumnAnsiOrCaret
ReturnStatus
Command Return Status Types.
@ eReturnStatusStarted
@ eReturnStatusSuccessContinuingResult
@ eReturnStatusFailed
@ eReturnStatusSuccessContinuingNoResult
@ eReturnStatusSuccessFinishResult
@ eReturnStatusInvalid
@ eReturnStatusSuccessFinishNoResult
QueueKind
Queue type.
@ eArgTypeSEDStylePair
@ eArgTypeExpressionPath
@ eArgTypeBreakpointIDRange
@ eArgTypePythonFunction
@ eArgTypePermissionsNumber
@ eArgTypeNumberPerLine
@ eArgTypePermissionsString
@ eArgTypeLogCategory
@ eArgTypeDescriptionVerbosity
@ eArgTypeOldPathPrefix
@ eArgTypePluginDomain
@ eArgTypeArchitecture
@ eArgTypeProcessName
@ eArgTypeFrameProviderIDRange
@ eArgTypeBreakpointID
@ eArgTypeThreadIndex
@ eArgTypeNewPathPrefix
@ eArgTypeStartAddress
@ eArgTypeNameMatchStyle
@ eArgTypeSettingPrefix
@ eArgTypePythonClass
@ eArgTypeFileLineColumn
@ eArgTypeCommandName
@ eArgTypeSummaryString
@ eArgTypePythonScript
@ eArgTypeScriptedExtension
@ eArgTypeRecognizerID
@ eArgTypeBreakpointResolverMask
@ eArgTypeManagedPlugin
@ eArgTypeWatchpointID
@ eArgTypeCPUFeatures
@ eArgTypeFunctionOrSymbol
@ eArgTypeRemoteFilename
@ eArgTypeExceptionStage
@ eArgTypeSettingIndex
@ eArgTypeSettingVariableName
@ eArgTypeDisassemblyFlavor
@ eArgTypeRegisterName
@ eArgTypeBreakpointName
@ eArgTypeScriptedCommandSynchronicity
@ eArgTypeCompletionType
@ eArgTypeWatchpointIDRange
@ eArgTypeSaveCoreStyle
@ eArgTypeRegularExpression
@ eArgTypeUnsignedInteger
@ eArgTypeFunctionName
@ eArgTypeAliasOptions
@ eArgTypeDirectoryName
@ eArgTypeAddressOrExpression
ByteOrder
Byte ordering definitions.
MemberFunctionKind
Kind of member function.
@ eMemberFunctionKindInstanceMethod
A function that applies to a specific instance.
@ eMemberFunctionKindConstructor
A function used to create instances.
@ eMemberFunctionKindUnknown
Not sure what the type of this is.
@ eMemberFunctionKindDestructor
A function used to tear down existing instances.
@ eMemberFunctionKindStaticMethod
A function that applies to a type rather than any instance.
InstructionControlFlowKind
Architecture-agnostic categorization of instructions for traversing the control flow of a trace.
@ eInstructionControlFlowKindReturn
The instruction is a near (function) return.
@ eInstructionControlFlowKindFarJump
The instruction is a jump-like far transfer. E.g. FAR JMP.
@ eInstructionControlFlowKindOther
The instruction is something not listed below, i.e.
@ eInstructionControlFlowKindFarCall
The instruction is a call-like far transfer.
@ eInstructionControlFlowKindFarReturn
The instruction is a return-like far transfer.
@ eInstructionControlFlowKindUnknown
The instruction could not be classified.
@ eInstructionControlFlowKindJump
The instruction is a near unconditional jump.
@ eInstructionControlFlowKindCall
The instruction is a near (function) call.
@ eInstructionControlFlowKindCondJump
The instruction is a near conditional jump.
TraceCursorSeekType
Enum to indicate the reference point when invoking TraceCursor::Seek().
@ eTraceCursorSeekTypeCurrent
The current position in the trace.
@ eTraceCursorSeekTypeEnd
The end of the trace, i.e the most recent item.
@ eTraceCursorSeekTypeBeginning
The beginning of the trace, i.e the oldest item.
@ eSearchDepthInvalid
@ eSearchDepthAddress
@ eSearchDepthFunction
@ kLastSearchDepthKind
@ eSearchDepthCompUnit
@ eValueTypeVTableEntry
function pointer in virtual function table
@ eValueTypeSyntheticFlag
A flag that indicates if the value type is synthetic or not.
@ eValueTypeVTable
virtual function table
@ eValueTypeVariableGlobal
globals variable
@ eValueTypeConstResult
constant result variables
@ kValueTypeFlagsMask
@ eValueTypeVariableLocal
function local variables
@ eValueTypeVariableArgument
function argument variables
@ eValueTypeRegister
stack frame register value
@ eValueTypeVariableStatic
static variable
@ eValueTypeRegisterSet
A collection of stack frame register values.
@ eValueTypeVariableThreadLocal
thread local storage variable
@ eGdbSignalBadInstruction
@ eTraceItemKindInstruction
StopReason
Thread stop reasons.
@ eStopReasonInstrumentation
@ eStopReasonPlanComplete
@ eStopReasonHistoryBoundary
@ eStopReasonBreakpoint
@ eStopReasonExec
Program was re-exec'ed.
@ eStopReasonVForkDone
@ eStopReasonInterrupt
Thread requested interrupt.
@ eStopReasonProcessorTrace
@ eStopReasonThreadExiting
@ eStopReasonException
@ eStopReasonWatchpoint
BinaryInformationLevel
When the Process plugin can retrieve information about all binaries loaded in the target process,...
@ eBinaryInformationLevelAddrName
@ eBinaryInformationLevelAddrNameUUID
@ eBinaryInformationLevelFull
@ eBinaryInformationLevelAddrOnly
AddressMaskType
Used in the SBProcess AddressMask/FixAddress methods.
@ eDynamicDontRunTarget
@ eDynamicCanRunTarget
@ eStructuredDataTypeFloat
@ eStructuredDataTypeDictionary
@ eStructuredDataTypeInvalid
@ eStructuredDataTypeInteger
@ eStructuredDataTypeGeneric
@ eStructuredDataTypeArray
@ eStructuredDataTypeSignedInteger
@ eStructuredDataTypeUnsignedInteger
@ eStructuredDataTypeNull
@ eStructuredDataTypeBoolean
@ eStructuredDataTypeString
@ eSectionTypeDWARFDebugStrOffsets
@ eSectionTypeELFDynamicSymbols
Elf SHT_DYNSYM section.
@ eSectionTypeInvalid
@ eSectionTypeDWARFDebugPubNames
@ eSectionTypeDataObjCCFStrings
Objective-C const CFString/NSString objects.
@ eSectionTypeZeroFill
@ eSectionTypeDWARFDebugLocDwo
@ eSectionTypeDWARFDebugFrame
@ eSectionTypeARMextab
@ eSectionTypeContainer
The section contains child sections.
@ eSectionTypeDWARFDebugLocLists
DWARF v5 .debug_loclists.
@ eSectionTypeDWARFDebugTypes
DWARF .debug_types section.
@ eSectionTypeDataSymbolAddress
Address of a symbol in the symbol table.
@ eSectionTypeELFDynamicLinkInfo
Elf SHT_DYNAMIC section.
@ eSectionTypeDWARFDebugMacInfo
@ eSectionTypeAbsoluteAddress
Dummy section for symbols with absolute address.
@ eSectionTypeCompactUnwind
compact unwind section in Mach-O, __TEXT,__unwind_info
@ eSectionTypeELFRelocationEntries
Elf SHT_REL or SHT_REL section.
@ eSectionTypeDWARFAppleNamespaces
@ eSectionTypeLLDBFormatters
@ eSectionTypeDWARFDebugNames
DWARF v5 .debug_names.
@ eSectionTypeDWARFDebugRngLists
DWARF v5 .debug_rnglists.
@ eSectionTypeEHFrame
@ eSectionTypeDWARFDebugStrOffsetsDwo
@ eSectionTypeDWARFDebugMacro
@ eSectionTypeDWARFAppleTypes
@ eSectionTypeWasmGlobal
@ eSectionTypeDWARFDebugInfo
@ eSectionTypeDWARFDebugTypesDwo
@ eSectionTypeDWARFDebugRanges
@ eSectionTypeDWARFDebugRngListsDwo
@ eSectionTypeLLDBTypeSummaries
@ eSectionTypeGoSymtab
@ eSectionTypeARMexidx
@ eSectionTypeDWARFDebugLine
@ eSectionTypeDWARFDebugPubTypes
@ eSectionTypeDataObjCMessageRefs
Pointer to function pointer + selector.
@ eSectionTypeDWARFDebugTuIndex
@ eSectionTypeDWARFDebugStr
@ eSectionTypeDWARFDebugLineStr
DWARF v5 .debug_line_str.
@ eSectionTypeDWARFDebugLoc
@ eSectionTypeDWARFAppleNames
@ eSectionTypeDataCStringPointers
Pointers to C string data.
@ eSectionTypeDWARFAppleObjC
@ eSectionTypeSwiftModules
@ eSectionTypeDWARFDebugCuIndex
@ eSectionTypeDWARFDebugAranges
@ eSectionTypeDWARFDebugAbbrevDwo
@ eSectionTypeDWARFGNUDebugAltLink
@ eSectionTypeDWARFDebugStrDwo
@ eSectionTypeDWARFDebugAbbrev
@ eSectionTypeDataPointers
@ eSectionTypeDWARFDebugLocListsDwo
@ eSectionTypeDWARFDebugInfoDwo
@ eSectionTypeDWARFDebugAddr
@ eSectionTypeWasmName
@ eSectionTypeDataCString
Inlined C string data.
@ eSectionTypeELFSymbolTable
Elf SHT_SYMTAB section.
RunMode
Thread Run Modes.
@ eOnlyDuringStepping
DILMode
Data Inspection Language (DIL) evaluation modes.
@ eDILModeFull
Allowed: everything supported by DIL.
@ eDILModeLegacy
Allowed: identifiers, integers, operators: '.', '->', '*', '&', '[]'.
@ eDILModeSimple
Allowed: identifiers, operators: '.'.
@ eSymbolDownloadBackground
@ eSymbolDownloadForeground
CommandReturnObjectCallbackResult
Callback return value, indicating whether it handled printing the CommandReturnObject or deferred doi...
@ eCommandReturnObjectPrintCallbackSkipped
The callback deferred printing the command return object.
@ eCommandReturnObjectPrintCallbackHandled
The callback handled printing the command return object.
@ eExceptionStageReThrow
@ eExceptionStageCreate
InputReaderGranularity
Token size/granularities for Input Readers.
@ eInputReaderGranularityInvalid
@ eInputReaderGranularityAll
@ eInputReaderGranularityWord
@ eInputReaderGranularityByte
@ eInputReaderGranularityLine
QueueItemKind
Queue work item types.
@ eQueueItemKindUnknown
@ eQueueItemKindFunction
RegisterKind
Register numbering types.
@ eRegisterKindGeneric
insn ptr reg, stack ptr reg, etc not specific to any particular target
@ eRegisterKindLLDB
lldb's internal register numbers
@ eRegisterKindDWARF
the register numbers seen DWARF
@ eRegisterKindEHFrame
the register numbers seen in eh_frame
@ eRegisterKindProcessPlugin
num used by the process plugin - e.g.