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
669
675
681
688
696
807 eArgTypeLastArg // Always keep this entry as the last entry in this
808 // enumeration!!
809};
810
811/// Symbol types.
812// Symbol holds the SymbolType in a 6-bit field (m_type), so if you get over 63
813// entries you will have to resize that field.
847
851 /// The section contains child sections
854 /// Inlined C string data
856 /// Pointers to C string data
858 /// Address of a symbol in the symbol table
866 /// Pointer to function pointer + selector
868 /// Objective-C const CFString/NSString objects
889 /// Elf SHT_SYMTAB section
891 /// Elf SHT_DYNSYM section
893 /// Elf SHT_REL or SHT_REL section
895 /// Elf SHT_DYNAMIC section
900 /// compact unwind section in Mach-O, __TEXT,__unwind_info
903 /// Dummy section for symbols with absolute address
906 /// DWARF .debug_types section
908 /// DWARF v5 .debug_names
911 /// DWARF v5 .debug_line_str
913 /// DWARF v5 .debug_rnglists
915 /// DWARF v5 .debug_loclists
932};
933
934FLAGS_ENUM(EmulateInstructionOptions){
935 eEmulateInstructionOptionNone = (0u),
936 eEmulateInstructionOptionAutoAdvancePC = (1u << 0),
937 eEmulateInstructionOptionIgnoreConditions = (1u << 1)};
938
939FLAGS_ENUM(FunctionNameType){
940 eFunctionNameTypeNone = 0u,
941 /// Automatically figure out which FunctionNameType bits to set based on the
942 /// function name.
943 eFunctionNameTypeAuto = (1u << 1),
944 /// The function name. For C this is the same as just the name of the
945 /// function. For C++ this is the mangled or demangled version of the
946 /// mangled name. For ObjC this is the full function signature with the + or
947 /// - and the square brackets and the class and selector.
948 eFunctionNameTypeFull = (1u << 2),
949 /// The function name only, no namespaces or arguments and no class methods
950 /// or selectors will be searched.
951 eFunctionNameTypeBase = (1u << 3),
952 /// Find function by method name (C++) with no namespace or arguments.
953 eFunctionNameTypeMethod = (1u << 4),
954 /// Find function by selector name (ObjC) names.
955 eFunctionNameTypeSelector = (1u << 5),
956 /// DEPRECATED: use eFunctionNameTypeAuto.
957 eFunctionNameTypeAny = eFunctionNameTypeAuto};
958LLDB_MARK_AS_BITMASK_ENUM(FunctionNameType)
959
960/// Basic types enumeration for the public API SBType::GetBasicType().
998
999/// Deprecated
1002
1003 /// Intel Processor Trace
1005};
1006
1020
1021FLAGS_ENUM(TypeClass){
1022 eTypeClassInvalid = (0u), eTypeClassArray = (1u << 0),
1023 eTypeClassBlockPointer = (1u << 1), eTypeClassBuiltin = (1u << 2),
1024 eTypeClassClass = (1u << 3), eTypeClassComplexFloat = (1u << 4),
1025 eTypeClassComplexInteger = (1u << 5), eTypeClassEnumeration = (1u << 6),
1026 eTypeClassFunction = (1u << 7), eTypeClassMemberPointer = (1u << 8),
1027 eTypeClassObjCObject = (1u << 9), eTypeClassObjCInterface = (1u << 10),
1028 eTypeClassObjCObjectPointer = (1u << 11), eTypeClassPointer = (1u << 12),
1029 eTypeClassReference = (1u << 13), eTypeClassStruct = (1u << 14),
1030 eTypeClassTypedef = (1u << 15), eTypeClassUnion = (1u << 16),
1031 eTypeClassVector = (1u << 17),
1032 // Define the last type class as the MSBit of a 32 bit value
1033 eTypeClassOther = (1u << 31),
1034 // Define a mask that can be used for any type when finding types
1035 eTypeClassAny = (0xffffffffu)};
1037
1050
1051/// Type of match to be performed when looking for a formatter for a data type.
1052/// Used by classes like SBTypeNameSpecifier or lldb_private::TypeMatcher.
1060
1061/// Options that can be set for a formatter to alter its behavior. Not all of
1062/// these are applicable to all formatter types.
1063FLAGS_ENUM(TypeOptions){eTypeOptionNone = (0u),
1064 eTypeOptionCascade = (1u << 0),
1065 eTypeOptionSkipPointers = (1u << 1),
1066 eTypeOptionSkipReferences = (1u << 2),
1067 eTypeOptionHideChildren = (1u << 3),
1068 eTypeOptionHideValue = (1u << 4),
1069 eTypeOptionShowOneLiner = (1u << 5),
1070 eTypeOptionHideNames = (1u << 6),
1071 eTypeOptionNonCacheable = (1u << 7),
1072 eTypeOptionHideEmptyAggregates = (1u << 8),
1073 eTypeOptionFrontEndWantsDereference = (1u << 9),
1074 eTypeOptionCustomSubscripting = (1u << 10)};
1075
1076/// This is the return value for frame comparisons. If you are comparing frame A
1077/// to frame B the following cases arise:
1078///
1079/// 1) When frame A pushes frame B (or a frame that ends up pushing B) A is
1080/// Older than B.
1081///
1082/// 2) When frame A pushed frame B (or if frameA is on the stack but B is
1083/// not) A is Younger than B.
1084///
1085/// 3) When frame A and frame B have the same StackID, they are Equal.
1086///
1087/// 4) When frame A and frame B have the same immediate parent frame, but are
1088/// not equal, the comparison yields SameParent.
1089///
1090/// 5) If the two frames are on different threads or processes the comparison
1091/// is Invalid.
1092///
1093/// 6) If for some reason we can't figure out what went on, we return Unknown.
1102
1103/// File Permissions.
1104///
1105/// Designed to mimic the unix file permission bits so they can be used with
1106/// functions that set 'mode_t' to certain values for permissions.
1107FLAGS_ENUM(FilePermissions){
1108 eFilePermissionsUserRead = (1u << 8),
1109 eFilePermissionsUserWrite = (1u << 7),
1110 eFilePermissionsUserExecute = (1u << 6),
1111 eFilePermissionsGroupRead = (1u << 5),
1112 eFilePermissionsGroupWrite = (1u << 4),
1113 eFilePermissionsGroupExecute = (1u << 3),
1114 eFilePermissionsWorldRead = (1u << 2),
1115 eFilePermissionsWorldWrite = (1u << 1),
1116 eFilePermissionsWorldExecute = (1u << 0),
1117
1118 eFilePermissionsUserRW = (eFilePermissionsUserRead |
1119 eFilePermissionsUserWrite | 0),
1120 eFileFilePermissionsUserRX = (eFilePermissionsUserRead | 0 |
1121 eFilePermissionsUserExecute),
1122 eFilePermissionsUserRWX = (eFilePermissionsUserRead |
1123 eFilePermissionsUserWrite |
1124 eFilePermissionsUserExecute),
1125
1126 eFilePermissionsGroupRW = (eFilePermissionsGroupRead |
1127 eFilePermissionsGroupWrite | 0),
1128 eFilePermissionsGroupRX = (eFilePermissionsGroupRead | 0 |
1129 eFilePermissionsGroupExecute),
1130 eFilePermissionsGroupRWX = (eFilePermissionsGroupRead |
1131 eFilePermissionsGroupWrite |
1132 eFilePermissionsGroupExecute),
1133
1134 eFilePermissionsWorldRW = (eFilePermissionsWorldRead |
1135 eFilePermissionsWorldWrite | 0),
1136 eFilePermissionsWorldRX = (eFilePermissionsWorldRead | 0 |
1137 eFilePermissionsWorldExecute),
1138 eFilePermissionsWorldRWX = (eFilePermissionsWorldRead |
1139 eFilePermissionsWorldWrite |
1140 eFilePermissionsWorldExecute),
1141
1142 eFilePermissionsEveryoneR = (eFilePermissionsUserRead |
1143 eFilePermissionsGroupRead |
1144 eFilePermissionsWorldRead),
1145 eFilePermissionsEveryoneW = (eFilePermissionsUserWrite |
1146 eFilePermissionsGroupWrite |
1147 eFilePermissionsWorldWrite),
1148 eFilePermissionsEveryoneX = (eFilePermissionsUserExecute |
1149 eFilePermissionsGroupExecute |
1150 eFilePermissionsWorldExecute),
1151
1152 eFilePermissionsEveryoneRW = (eFilePermissionsEveryoneR |
1153 eFilePermissionsEveryoneW | 0),
1154 eFilePermissionsEveryoneRX = (eFilePermissionsEveryoneR | 0 |
1155 eFilePermissionsEveryoneX),
1156 eFilePermissionsEveryoneRWX = (eFilePermissionsEveryoneR |
1157 eFilePermissionsEveryoneW |
1158 eFilePermissionsEveryoneX),
1159 eFilePermissionsFileDefault = eFilePermissionsUserRW,
1160 eFilePermissionsDirectoryDefault = eFilePermissionsUserRWX,
1161};
1162
1163/// Queue work item types.
1164///
1165/// The different types of work that can be enqueued on a libdispatch aka Grand
1166/// Central Dispatch (GCD) queue.
1172
1173/// Queue type.
1174///
1175/// libdispatch aka Grand Central Dispatch (GCD) queues can be either serial
1176/// (executing on one thread) or concurrent (executing on multiple threads).
1182
1183/// Expression Evaluation Stages.
1184///
1185/// These are the cancellable stages of expression evaluation, passed to the
1186/// expression evaluation callback, so that you can interrupt expression
1187/// evaluation at the various points in its lifecycle.
1194
1195/// Architecture-agnostic categorization of instructions for traversing the
1196/// control flow of a trace.
1197///
1198/// A single instruction can match one or more of these categories.
1200 /// The instruction could not be classified.
1202 /// The instruction is something not listed below, i.e. it's a sequential
1203 /// instruction that doesn't affect the control flow of the program.
1205 /// The instruction is a near (function) call.
1207 /// The instruction is a near (function) return.
1209 /// The instruction is a near unconditional jump.
1211 /// The instruction is a near conditional jump.
1213 /// The instruction is a call-like far transfer. E.g. SYSCALL, SYSENTER, or
1214 /// FAR CALL.
1216 /// The instruction is a return-like far transfer. E.g. SYSRET, SYSEXIT, IRET,
1217 /// or FAR RET.
1219 /// The instruction is a jump-like far transfer. E.g. FAR JMP.
1221};
1222
1223/// Watchpoint Kind.
1224///
1225/// Indicates what types of events cause the watchpoint to fire. Used by Native
1226/// *Protocol-related classes.
1227FLAGS_ENUM(WatchpointKind){eWatchpointKindWrite = (1u << 0),
1228 eWatchpointKindRead = (1u << 1)};
1229
1238
1239/// Used with SBHostOS::GetLLDBPath (lldb::PathType) to find files that are
1240/// related to LLDB on the current host machine. Most files are relative to LLDB
1241/// or are in known locations.
1243 /// The directory where the lldb.so (unix) or LLDB mach-o file in
1244 /// LLDB.framework (MacOSX) exists
1246 /// Find LLDB support executable directory (debugserver, etc)
1248 /// Find LLDB header file directory
1250 /// Find Python modules (PYTHONPATH) directory
1252 /// System plug-ins directory
1254 /// User plug-ins directory
1256 /// The LLDB temp directory for this system that will be cleaned up on exit
1258 /// The LLDB temp directory for this system, NOT cleaned up on a process exit.
1260 /// Find path to Clang builtin headers
1262};
1263
1264/// Kind of member function.
1265///
1266/// Used by the type system.
1268 /// Not sure what the type of this is
1270 /// A function used to create instances
1272 /// A function used to tear down existing instances
1274 /// A function that applies to a specific instance
1276 /// A function that applies to a type rather than any instance
1278};
1279
1280/// String matching algorithm used by SBTarget.
1287
1288/// Bitmask that describes details about a type.
1289FLAGS_ENUM(TypeFlags){
1290 eTypeHasChildren = (1u << 0), eTypeHasValue = (1u << 1),
1291 eTypeIsArray = (1u << 2), eTypeIsBlock = (1u << 3),
1292 eTypeIsBuiltIn = (1u << 4), eTypeIsClass = (1u << 5),
1293 eTypeIsCPlusPlus = (1u << 6), eTypeIsEnumeration = (1u << 7),
1294 eTypeIsFuncPrototype = (1u << 8), eTypeIsMember = (1u << 9),
1295 eTypeIsObjC = (1u << 10), eTypeIsPointer = (1u << 11),
1296 eTypeIsReference = (1u << 12), eTypeIsStructUnion = (1u << 13),
1297 eTypeIsTemplate = (1u << 14), eTypeIsTypedef = (1u << 15),
1298 eTypeIsVector = (1u << 16), eTypeIsScalar = (1u << 17),
1299 eTypeIsInteger = (1u << 18), eTypeIsFloat = (1u << 19),
1300 eTypeIsComplex = (1u << 20), eTypeIsSigned = (1u << 21),
1301 eTypeInstanceIsPointer = (1u << 22)};
1302
1303FLAGS_ENUM(CommandFlags){
1304 /// eCommandRequiresTarget
1305 ///
1306 /// Ensures a valid target is contained in m_exe_ctx prior to executing the
1307 /// command. If a target doesn't exist or is invalid, the command will fail
1308 /// and CommandObject::GetInvalidTargetDescription() will be returned as the
1309 /// error. CommandObject subclasses can override the virtual function for
1310 /// GetInvalidTargetDescription() to provide custom strings when needed.
1311 eCommandRequiresTarget = (1u << 0),
1312 /// eCommandRequiresProcess
1313 ///
1314 /// Ensures a valid process is contained in m_exe_ctx prior to executing the
1315 /// command. If a process doesn't exist or is invalid, the command will fail
1316 /// and CommandObject::GetInvalidProcessDescription() will be returned as
1317 /// the error. CommandObject subclasses can override the virtual function
1318 /// for GetInvalidProcessDescription() to provide custom strings when
1319 /// needed.
1320 eCommandRequiresProcess = (1u << 1),
1321 /// eCommandRequiresThread
1322 ///
1323 /// Ensures a valid thread is contained in m_exe_ctx prior to executing the
1324 /// command. If a thread doesn't exist or is invalid, the command will fail
1325 /// and CommandObject::GetInvalidThreadDescription() will be returned as the
1326 /// error. CommandObject subclasses can override the virtual function for
1327 /// GetInvalidThreadDescription() to provide custom strings when needed.
1328 eCommandRequiresThread = (1u << 2),
1329 /// eCommandRequiresFrame
1330 ///
1331 /// Ensures a valid frame is contained in m_exe_ctx prior to executing the
1332 /// command. If a frame doesn't exist or is invalid, the command will fail
1333 /// and CommandObject::GetInvalidFrameDescription() will be returned as the
1334 /// error. CommandObject subclasses can override the virtual function for
1335 /// GetInvalidFrameDescription() to provide custom strings when needed.
1336 eCommandRequiresFrame = (1u << 3),
1337 /// eCommandRequiresRegContext
1338 ///
1339 /// Ensures a valid register context (from the selected frame if there is a
1340 /// frame in m_exe_ctx, or from the selected thread from m_exe_ctx) is
1341 /// available from m_exe_ctx prior to executing the command. If a target
1342 /// doesn't exist or is invalid, the command will fail and
1343 /// CommandObject::GetInvalidRegContextDescription() will be returned as the
1344 /// error. CommandObject subclasses can override the virtual function for
1345 /// GetInvalidRegContextDescription() to provide custom strings when needed.
1346 eCommandRequiresRegContext = (1u << 4),
1347 /// eCommandTryTargetAPILock
1348 ///
1349 /// Attempts to acquire the target lock if a target is selected in the
1350 /// command interpreter. If the command object fails to acquire the API
1351 /// lock, the command will fail with an appropriate error message.
1352 eCommandTryTargetAPILock = (1u << 5),
1353 /// eCommandProcessMustBeLaunched
1354 ///
1355 /// Verifies that there is a launched process in m_exe_ctx, if there isn't,
1356 /// the command will fail with an appropriate error message.
1357 eCommandProcessMustBeLaunched = (1u << 6),
1358 /// eCommandProcessMustBePaused
1359 ///
1360 /// Verifies that there is a paused process in m_exe_ctx, if there isn't,
1361 /// the command will fail with an appropriate error message.
1362 eCommandProcessMustBePaused = (1u << 7),
1363 /// eCommandProcessMustBeTraced
1364 ///
1365 /// Verifies that the process is being traced by a Trace plug-in, if it
1366 /// isn't the command will fail with an appropriate error message.
1367 eCommandProcessMustBeTraced = (1u << 8),
1368 /// eCommandAllowsDummyTarget
1369 ///
1370 /// Indicates that the command can legitimately operate on the dummy target
1371 /// (e.g. `breakpoint set` priming future targets). Without this flag,
1372 /// CommandObject::GetTarget filters the dummy target out and returns null
1373 /// when no real target is selected.
1374 eCommandAllowsDummyTarget = (1u << 9)};
1375
1376/// Whether a summary should cap how much data it returns to users or not.
1381
1382/// The result from a command interpreter run.
1384 /// Command interpreter finished successfully.
1386 /// Stopped because the corresponding option was set and the inferior crashed.
1388 /// Stopped because the corresponding option was set and a command returned an
1389 /// error.
1391 /// Stopped because quit was requested.
1393};
1394
1395// Style of core file to create when calling SaveCore.
1403
1404/// Events that might happen during a trace session.
1406 /// Tracing was disabled for some time due to a software trigger.
1408 /// Tracing was disable for some time due to a hardware trigger.
1410 /// Event due to CPU change for a thread. This event is also fired when
1411 /// suddenly it's not possible to identify the cpu of a given thread.
1413 /// Event due to a CPU HW clock tick.
1415 /// The underlying tracing technology emitted a synchronization event used by
1416 /// trace processors.
1418};
1419
1420// Enum used to identify which kind of item a \a TraceCursor is pointing at
1426
1427/// Enum to indicate the reference point when invoking \a TraceCursor::Seek().
1428/// The following values are inspired by \a std::istream::seekg.
1430 /// The beginning of the trace, i.e the oldest item.
1432 /// The current position in the trace.
1434 /// The end of the trace, i.e the most recent item.
1436};
1437
1438/// Enum to control the verbosity level of `dwim-print` execution.
1440 /// Run `dwim-print` with no verbosity.
1442 /// Print a message when `dwim-print` uses `expression` evaluation.
1444 /// Always print a message indicating how `dwim-print` is evaluating its
1445 /// expression.
1447};
1448
1451 /// Watchpoint was created watching a variable
1453 /// Watchpoint was created watching the result of an expression that was
1454 /// evaluated at creation time.
1456};
1457
1463 eSymbolCompletion = (1ul << 3),
1464 eModuleCompletion = (1ul << 4),
1485 eCustomCompletion = (1ul << 25),
1486 eThreadIDCompletion = (1ul << 26),
1489 // This last enum element is just for input validation.
1490 // Add new completions before this element,
1491 // and then increment eTerminatorCompletion's shift value
1493};
1494
1495/// Specifies if children need to be re-computed after a call to \ref
1496/// SyntheticChildrenFrontEnd::Update.
1498 /// Children need to be recomputed dynamically.
1500
1501 /// Children did not change and don't need to be recomputed; re-use what we
1502 /// computed the last time we called Update.
1504};
1505
1511
1518
1519/// Used in the SBProcess AddressMask/FixAddress methods.
1526
1527/// Used in the SBProcess AddressMask/FixAddress methods.
1534
1535/// Used by the debugger to indicate which events are being broadcasted.
1547
1548/// Used for expressing severity in logs and diagnostics.
1552 eSeverityInfo, // Equivalent to Remark used in clang.
1553};
1554
1555/// Callback return value, indicating whether it handled printing the
1556/// CommandReturnObject or deferred doing so to the CommandInterpreter.
1558 /// The callback deferred printing the command return object.
1560 /// The callback handled printing the command return object.
1562};
1563
1564/// Used to determine when to show disassembly.
1571
1578
1580 eNameMatchStyleAuto = eFunctionNameTypeAuto,
1581 eNameMatchStyleFull = eFunctionNameTypeFull,
1582 eNameMatchStyleBase = eFunctionNameTypeBase,
1583 eNameMatchStyleMethod = eFunctionNameTypeMethod,
1584 eNameMatchStyleSelector = eFunctionNameTypeSelector,
1585 eNameMatchStyleRegex = eFunctionNameTypeSelector << 1
1586};
1587
1588/// Data Inspection Language (DIL) evaluation modes. DIL will only attempt
1589/// evaluating expressions that contain tokens allowed by a selected mode.
1591 /// Allowed: identifiers, operators: '.'.
1593 /// Allowed: identifiers, integers, operators: '.', '->', '*', '&', '[]'.
1595 /// Allowed: everything supported by DIL. \see lldb/docs/dil-expr-lang.ebnf
1597};
1598
1599/// When the Process plugin can retrieve information about all binaries loaded
1600/// in the target process, or given a list of binary load addresses, this enum
1601/// specifies how much information needed from the Process plugin; there may be
1602/// performance reasons to limit the amount of information returned.
1609
1610/// This reflects the BreakpointResolver::ResolverTy, but this is a convenient
1611/// enum for making a mask to pass to RegisterOverrideResolver. It has to be
1612/// kept in sync with the ResolverTy.
1613FLAGS_ENUM(BreakpointResolverType){
1614 eResolverUnknown = 0, eResolverFileAndLine = (1 << 0),
1615 eResolverAddress = (1 << 1), eResolverName = (1 << 2),
1616 eResolverFileRegex = (1 << 3), eResolverPython = (1 << 4),
1617 eResolverException = (1 << 5), eResolverLastKnown = eResolverException,
1618};
1620 eResolverFileAndLine | eResolverAddress | eResolverName |
1621 eResolverFileRegex | eResolverPython | eResolverException;
1622
1623} // namespace lldb
1624
1625#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
DEPRECATED: use eInstrumentationRuntimeTypeAddressSanitizer.
@ 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.