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/// Register numbering types.
259// See RegisterContext::ConvertRegisterKindToRegisterNumber to convert any of
260// these to the lldb internal register numbering scheme (eRegisterKindLLDB).
262 /// the register numbers seen in eh_frame
264 /// the register numbers seen DWARF
266 /// insn ptr reg, stack ptr reg, etc not specific to any particular target
268 /// num used by the process plugin - e.g. by the remote gdb-protocol stub
269 /// program
271 /// lldb's internal register numbers
274};
275
276/// Thread stop reasons.
300
301/// Command Return Status Types.
312
313/// The results of expression evaluation.
326
337
338/// Connection Status Types.
340 /// Success
342 /// End-of-file encountered
344 /// Check GetError() for details
346 /// Request timed out
348 /// No connection
350 /// Lost connection while connected to a valid connection
352 /// Interrupted read
354};
355
358 /// Generic errors that can be any value.
360 /// Mach kernel error codes.
362 /// POSIX error codes.
364 /// These are from the ExpressionResults enum.
366 /// Standard Win32 error codes.
368};
369
370enum ValueType : uint32_t {
372 /// globals variable
374 /// static variable
376 /// function argument variables
378 /// function local variables
380 /// stack frame register value
382 /// A collection of stack frame register values
384 /// constant result variables
386 /// thread local storage variable
388 /// virtual function table
390 /// function pointer in virtual function table
392};
393
394/// A mask that we can use to check if the value type is synthetic or not.
395// NOTE: This limits the number of value types to 31, but that's 3x more than
396// what we currently have now. See lldb/Utility/ValueType.h for helpers for
397// working with synthetic value types.
398static constexpr unsigned ValueTypeSyntheticMask = 0x20;
399
400/// Token size/granularities for Input Readers.
401
409
410/// These mask bits allow a common interface for queries that can limit the
411/// amount of information that gets parsed to only the information that is
412/// requested. These bits also can indicate what actually did get resolved
413/// during query function calls.
414///
415/// Each definition corresponds to a one of the member variables in this class,
416/// and requests that that item be resolved, or indicates that the member did
417/// get resolved.
418FLAGS_ENUM(SymbolContextItem){
419 /// Set when \a target is requested from a query, or was located in query
420 /// results
421 eSymbolContextTarget = (1u << 0),
422 /// Set when \a module is requested from a query, or was located in query
423 /// results
424 eSymbolContextModule = (1u << 1),
425 /// Set when \a comp_unit is requested from a query, or was located in query
426 /// results
427 eSymbolContextCompUnit = (1u << 2),
428 /// Set when \a function is requested from a query, or was located in query
429 /// results
430 eSymbolContextFunction = (1u << 3),
431 /// Set when the deepest \a block is requested from a query, or was located
432 /// in query results
433 eSymbolContextBlock = (1u << 4),
434 /// Set when \a line_entry is requested from a query, or was located in
435 /// query results
436 eSymbolContextLineEntry = (1u << 5),
437 /// Set when \a symbol is requested from a query, or was located in query
438 /// results
439 eSymbolContextSymbol = (1u << 6),
440 /// Indicates to try and lookup everything up during a routine symbol
441 /// context query.
442 eSymbolContextEverything = ((eSymbolContextSymbol << 1) - 1u),
443 /// Set when \a global or static variable is requested from a query, or was
444 /// located in query results. eSymbolContextVariable is potentially
445 /// expensive to lookup so it isn't included in eSymbolContextEverything
446 /// which stops it from being used during frame PC lookups and many other
447 /// potential address to symbol context lookups.
448 eSymbolContextVariable = (1u << 7),
449
450 // Keep this last and up-to-date for what the last enum value is.
451 eSymbolContextLastItem = eSymbolContextVariable,
452};
453LLDB_MARK_AS_BITMASK_ENUM(SymbolContextItem)
454
455FLAGS_ENUM(Permissions){ePermissionsWritable = (1u << 0),
456 ePermissionsReadable = (1u << 1),
457 ePermissionsExecutable = (1u << 2)};
458LLDB_MARK_AS_BITMASK_ENUM(Permissions)
459
461 /// reader is newly pushed onto the reader stack
463 /// an async output event occurred; the reader may want to do something
465 /// reader is on top of the stack again after another reader was popped off
467 /// another reader was pushed on the stack
469 /// reader got one of its tokens (granularity)
471 /// reader received an interrupt signal (probably from a control-c)
473 /// reader received an EOF char (probably from a control-d)
475 /// reader was just popped off the stack and is done
477};
478
479FLAGS_ENUM(BreakpointEventType){
480 eBreakpointEventTypeInvalidType = (1u << 0),
481 eBreakpointEventTypeAdded = (1u << 1),
482 eBreakpointEventTypeRemoved = (1u << 2),
483 /// Locations added doesn't get sent when the breakpoint is created
484 eBreakpointEventTypeLocationsAdded = (1u << 3),
485 eBreakpointEventTypeLocationsRemoved = (1u << 4),
486 eBreakpointEventTypeLocationsResolved = (1u << 5),
487 eBreakpointEventTypeEnabled = (1u << 6),
488 eBreakpointEventTypeDisabled = (1u << 7),
489 eBreakpointEventTypeCommandChanged = (1u << 8),
490 eBreakpointEventTypeConditionChanged = (1u << 9),
491 eBreakpointEventTypeIgnoreChanged = (1u << 10),
492 eBreakpointEventTypeThreadChanged = (1u << 11),
493 eBreakpointEventTypeAutoContinueChanged = (1u << 12)};
494
495FLAGS_ENUM(WatchpointEventType){
496 eWatchpointEventTypeInvalidType = (1u << 0),
497 eWatchpointEventTypeAdded = (1u << 1),
498 eWatchpointEventTypeRemoved = (1u << 2),
499 eWatchpointEventTypeEnabled = (1u << 6),
500 eWatchpointEventTypeDisabled = (1u << 7),
501 eWatchpointEventTypeCommandChanged = (1u << 8),
502 eWatchpointEventTypeConditionChanged = (1u << 9),
503 eWatchpointEventTypeIgnoreChanged = (1u << 10),
504 eWatchpointEventTypeThreadChanged = (1u << 11),
505 eWatchpointEventTypeTypeChanged = (1u << 12)};
506
508 /// Don't stop when the watched memory region is written to.
510 /// Stop on any write access to the memory region, even if the value doesn't
511 /// change. On some architectures, a write near the memory region may be
512 /// falsely reported as a match, and notify this spurious stop as a watchpoint
513 /// trap.
515 /// Stop on a write to the memory region that changes its value. This is most
516 /// likely the behavior a user expects, and is the behavior in gdb. lldb can
517 /// silently ignore writes near the watched memory region that are reported as
518 /// accesses to lldb.
520};
521
522/// Programming language type.
523///
524/// These enumerations use the same language enumerations as the DWARF
525/// specification for ease of use and consistency. The enum -> string code is in
526/// Language.cpp, don't change this table without updating that code as well.
527///
528/// This datatype is used in SBExpressionOptions::SetLanguage() which makes this
529/// type API. Do not change its underlying storage type!
531 /// Unknown or invalid language value.
533 /// ISO C:1989.
535 /// Non-standardized C, such as K&R.
537 /// ISO Ada:1983.
539 /// ISO C++:1998.
541 /// ISO Cobol:1974.
543 /// ISO Cobol:1985.
545 /// ISO Fortran 77.
547 /// ISO Fortran 90.
549 /// ISO Pascal:1983.
551 /// ISO Modula-2:1996.
553 /// Java.
555 /// ISO C:1999.
557 /// ISO Ada:1995.
559 /// ISO Fortran 95.
561 /// ANSI PL/I:1976.
563 /// Objective-C.
565 /// Objective-C++.
567 /// Unified Parallel C.
569 /// D.
571 /// Python.
573 // NOTE: The below are DWARF5 constants, subject to change upon
574 // completion of the DWARF5 specification
575 /// OpenCL.
577 /// Go.
579 /// Modula 3.
581 /// Haskell.
583 /// ISO C++:2003.
585 /// ISO C++:2011.
587 /// OCaml.
589 /// Rust.
591 /// ISO C:2011.
593 /// Swift.
595 /// Julia.
597 /// Dylan.
599 /// ISO C++:2014.
601 /// ISO Fortran 2003.
603 /// ISO Fortran 2008.
610 /// ISO C++:2017.
612 /// ISO C++:2020.
623
624 // Vendor Extensions
625 // Note: Language::GetNameForLanguageType
626 // assumes these can be used as indexes into array language_names, and
627 // Language::SetLanguageFromCString and Language::AsCString assume these can
628 // be used as indexes into array g_languages.
629 /// Mips_Assembler.
632};
633
644
650
656
663
671
780 eArgTypeLastArg // Always keep this entry as the last entry in this
781 // enumeration!!
782};
783
784/// Symbol types.
785// Symbol holds the SymbolType in a 6-bit field (m_type), so if you get over 63
786// entries you will have to resize that field.
820
824 /// The section contains child sections
827 /// Inlined C string data
829 /// Pointers to C string data
831 /// Address of a symbol in the symbol table
839 /// Pointer to function pointer + selector
841 /// Objective-C const CFString/NSString objects
862 /// Elf SHT_SYMTAB section
864 /// Elf SHT_DYNSYM section
866 /// Elf SHT_REL or SHT_REL section
868 /// Elf SHT_DYNAMIC section
873 /// compact unwind section in Mach-O, __TEXT,__unwind_info
876 /// Dummy section for symbols with absolute address
879 /// DWARF .debug_types section
881 /// DWARF v5 .debug_names
884 /// DWARF v5 .debug_line_str
886 /// DWARF v5 .debug_rnglists
888 /// DWARF v5 .debug_loclists
904};
905
906FLAGS_ENUM(EmulateInstructionOptions){
907 eEmulateInstructionOptionNone = (0u),
908 eEmulateInstructionOptionAutoAdvancePC = (1u << 0),
909 eEmulateInstructionOptionIgnoreConditions = (1u << 1)};
910
911FLAGS_ENUM(FunctionNameType){
912 eFunctionNameTypeNone = 0u,
913 /// Automatically figure out which FunctionNameType bits to set based on the
914 /// function name.
915 eFunctionNameTypeAuto = (1u << 1),
916 /// The function name. For C this is the same as just the name of the
917 /// function. For C++ this is the mangled or demangled version of the
918 /// mangled name. For ObjC this is the full function signature with the + or
919 /// - and the square brackets and the class and selector.
920 eFunctionNameTypeFull = (1u << 2),
921 /// The function name only, no namespaces or arguments and no class methods
922 /// or selectors will be searched.
923 eFunctionNameTypeBase = (1u << 3),
924 /// Find function by method name (C++) with no namespace or arguments.
925 eFunctionNameTypeMethod = (1u << 4),
926 /// Find function by selector name (ObjC) names.
927 eFunctionNameTypeSelector = (1u << 5),
928 /// DEPRECATED: use eFunctionNameTypeAuto.
929 eFunctionNameTypeAny = eFunctionNameTypeAuto};
930LLDB_MARK_AS_BITMASK_ENUM(FunctionNameType)
931
932/// Basic types enumeration for the public API SBType::GetBasicType().
970
971/// Deprecated
974
975 /// Intel Processor Trace
977};
978
992
993FLAGS_ENUM(TypeClass){
994 eTypeClassInvalid = (0u), eTypeClassArray = (1u << 0),
995 eTypeClassBlockPointer = (1u << 1), eTypeClassBuiltin = (1u << 2),
996 eTypeClassClass = (1u << 3), eTypeClassComplexFloat = (1u << 4),
997 eTypeClassComplexInteger = (1u << 5), eTypeClassEnumeration = (1u << 6),
998 eTypeClassFunction = (1u << 7), eTypeClassMemberPointer = (1u << 8),
999 eTypeClassObjCObject = (1u << 9), eTypeClassObjCInterface = (1u << 10),
1000 eTypeClassObjCObjectPointer = (1u << 11), eTypeClassPointer = (1u << 12),
1001 eTypeClassReference = (1u << 13), eTypeClassStruct = (1u << 14),
1002 eTypeClassTypedef = (1u << 15), eTypeClassUnion = (1u << 16),
1003 eTypeClassVector = (1u << 17),
1004 // Define the last type class as the MSBit of a 32 bit value
1005 eTypeClassOther = (1u << 31),
1006 // Define a mask that can be used for any type when finding types
1007 eTypeClassAny = (0xffffffffu)};
1009
1022
1023/// Type of match to be performed when looking for a formatter for a data type.
1024/// Used by classes like SBTypeNameSpecifier or lldb_private::TypeMatcher.
1032
1033/// Options that can be set for a formatter to alter its behavior. Not all of
1034/// these are applicable to all formatter types.
1035FLAGS_ENUM(TypeOptions){eTypeOptionNone = (0u),
1036 eTypeOptionCascade = (1u << 0),
1037 eTypeOptionSkipPointers = (1u << 1),
1038 eTypeOptionSkipReferences = (1u << 2),
1039 eTypeOptionHideChildren = (1u << 3),
1040 eTypeOptionHideValue = (1u << 4),
1041 eTypeOptionShowOneLiner = (1u << 5),
1042 eTypeOptionHideNames = (1u << 6),
1043 eTypeOptionNonCacheable = (1u << 7),
1044 eTypeOptionHideEmptyAggregates = (1u << 8),
1045 eTypeOptionFrontEndWantsDereference = (1u << 9),
1046 eTypeOptionCustomSubscripting = (1u << 10)};
1047
1048/// This is the return value for frame comparisons. If you are comparing frame A
1049/// to frame B the following cases arise:
1050///
1051/// 1) When frame A pushes frame B (or a frame that ends up pushing B) A is
1052/// Older than B.
1053///
1054/// 2) When frame A pushed frame B (or if frameA is on the stack but B is
1055/// not) A is Younger than B.
1056///
1057/// 3) When frame A and frame B have the same StackID, they are Equal.
1058///
1059/// 4) When frame A and frame B have the same immediate parent frame, but are
1060/// not equal, the comparison yields SameParent.
1061///
1062/// 5) If the two frames are on different threads or processes the comparison
1063/// is Invalid.
1064///
1065/// 6) If for some reason we can't figure out what went on, we return Unknown.
1074
1075/// File Permissions.
1076///
1077/// Designed to mimic the unix file permission bits so they can be used with
1078/// functions that set 'mode_t' to certain values for permissions.
1079FLAGS_ENUM(FilePermissions){
1080 eFilePermissionsUserRead = (1u << 8),
1081 eFilePermissionsUserWrite = (1u << 7),
1082 eFilePermissionsUserExecute = (1u << 6),
1083 eFilePermissionsGroupRead = (1u << 5),
1084 eFilePermissionsGroupWrite = (1u << 4),
1085 eFilePermissionsGroupExecute = (1u << 3),
1086 eFilePermissionsWorldRead = (1u << 2),
1087 eFilePermissionsWorldWrite = (1u << 1),
1088 eFilePermissionsWorldExecute = (1u << 0),
1089
1090 eFilePermissionsUserRW = (eFilePermissionsUserRead |
1091 eFilePermissionsUserWrite | 0),
1092 eFileFilePermissionsUserRX = (eFilePermissionsUserRead | 0 |
1093 eFilePermissionsUserExecute),
1094 eFilePermissionsUserRWX = (eFilePermissionsUserRead |
1095 eFilePermissionsUserWrite |
1096 eFilePermissionsUserExecute),
1097
1098 eFilePermissionsGroupRW = (eFilePermissionsGroupRead |
1099 eFilePermissionsGroupWrite | 0),
1100 eFilePermissionsGroupRX = (eFilePermissionsGroupRead | 0 |
1101 eFilePermissionsGroupExecute),
1102 eFilePermissionsGroupRWX = (eFilePermissionsGroupRead |
1103 eFilePermissionsGroupWrite |
1104 eFilePermissionsGroupExecute),
1105
1106 eFilePermissionsWorldRW = (eFilePermissionsWorldRead |
1107 eFilePermissionsWorldWrite | 0),
1108 eFilePermissionsWorldRX = (eFilePermissionsWorldRead | 0 |
1109 eFilePermissionsWorldExecute),
1110 eFilePermissionsWorldRWX = (eFilePermissionsWorldRead |
1111 eFilePermissionsWorldWrite |
1112 eFilePermissionsWorldExecute),
1113
1114 eFilePermissionsEveryoneR = (eFilePermissionsUserRead |
1115 eFilePermissionsGroupRead |
1116 eFilePermissionsWorldRead),
1117 eFilePermissionsEveryoneW = (eFilePermissionsUserWrite |
1118 eFilePermissionsGroupWrite |
1119 eFilePermissionsWorldWrite),
1120 eFilePermissionsEveryoneX = (eFilePermissionsUserExecute |
1121 eFilePermissionsGroupExecute |
1122 eFilePermissionsWorldExecute),
1123
1124 eFilePermissionsEveryoneRW = (eFilePermissionsEveryoneR |
1125 eFilePermissionsEveryoneW | 0),
1126 eFilePermissionsEveryoneRX = (eFilePermissionsEveryoneR | 0 |
1127 eFilePermissionsEveryoneX),
1128 eFilePermissionsEveryoneRWX = (eFilePermissionsEveryoneR |
1129 eFilePermissionsEveryoneW |
1130 eFilePermissionsEveryoneX),
1131 eFilePermissionsFileDefault = eFilePermissionsUserRW,
1132 eFilePermissionsDirectoryDefault = eFilePermissionsUserRWX,
1133};
1134
1135/// Queue work item types.
1136///
1137/// The different types of work that can be enqueued on a libdispatch aka Grand
1138/// Central Dispatch (GCD) queue.
1144
1145/// Queue type.
1146///
1147/// libdispatch aka Grand Central Dispatch (GCD) queues can be either serial
1148/// (executing on one thread) or concurrent (executing on multiple threads).
1154
1155/// Expression Evaluation Stages.
1156///
1157/// These are the cancellable stages of expression evaluation, passed to the
1158/// expression evaluation callback, so that you can interrupt expression
1159/// evaluation at the various points in its lifecycle.
1166
1167/// Architecture-agnostic categorization of instructions for traversing the
1168/// control flow of a trace.
1169///
1170/// A single instruction can match one or more of these categories.
1172 /// The instruction could not be classified.
1174 /// The instruction is something not listed below, i.e. it's a sequential
1175 /// instruction that doesn't affect the control flow of the program.
1177 /// The instruction is a near (function) call.
1179 /// The instruction is a near (function) return.
1181 /// The instruction is a near unconditional jump.
1183 /// The instruction is a near conditional jump.
1185 /// The instruction is a call-like far transfer. E.g. SYSCALL, SYSENTER, or
1186 /// FAR CALL.
1188 /// The instruction is a return-like far transfer. E.g. SYSRET, SYSEXIT, IRET,
1189 /// or FAR RET.
1191 /// The instruction is a jump-like far transfer. E.g. FAR JMP.
1193};
1194
1195/// Watchpoint Kind.
1196///
1197/// Indicates what types of events cause the watchpoint to fire. Used by Native
1198/// *Protocol-related classes.
1199FLAGS_ENUM(WatchpointKind){eWatchpointKindWrite = (1u << 0),
1200 eWatchpointKindRead = (1u << 1)};
1201
1210
1211/// Used with SBHostOS::GetLLDBPath (lldb::PathType) to find files that are
1212/// related to LLDB on the current host machine. Most files are relative to LLDB
1213/// or are in known locations.
1215 /// The directory where the lldb.so (unix) or LLDB mach-o file in
1216 /// LLDB.framework (MacOSX) exists
1218 /// Find LLDB support executable directory (debugserver, etc)
1220 /// Find LLDB header file directory
1222 /// Find Python modules (PYTHONPATH) directory
1224 /// System plug-ins directory
1226 /// User plug-ins directory
1228 /// The LLDB temp directory for this system that will be cleaned up on exit
1230 /// The LLDB temp directory for this system, NOT cleaned up on a process exit.
1232 /// Find path to Clang builtin headers
1234};
1235
1236/// Kind of member function.
1237///
1238/// Used by the type system.
1240 /// Not sure what the type of this is
1242 /// A function used to create instances
1244 /// A function used to tear down existing instances
1246 /// A function that applies to a specific instance
1248 /// A function that applies to a type rather than any instance
1250};
1251
1252/// String matching algorithm used by SBTarget.
1259
1260/// Bitmask that describes details about a type.
1261FLAGS_ENUM(TypeFlags){
1262 eTypeHasChildren = (1u << 0), eTypeHasValue = (1u << 1),
1263 eTypeIsArray = (1u << 2), eTypeIsBlock = (1u << 3),
1264 eTypeIsBuiltIn = (1u << 4), eTypeIsClass = (1u << 5),
1265 eTypeIsCPlusPlus = (1u << 6), eTypeIsEnumeration = (1u << 7),
1266 eTypeIsFuncPrototype = (1u << 8), eTypeIsMember = (1u << 9),
1267 eTypeIsObjC = (1u << 10), eTypeIsPointer = (1u << 11),
1268 eTypeIsReference = (1u << 12), eTypeIsStructUnion = (1u << 13),
1269 eTypeIsTemplate = (1u << 14), eTypeIsTypedef = (1u << 15),
1270 eTypeIsVector = (1u << 16), eTypeIsScalar = (1u << 17),
1271 eTypeIsInteger = (1u << 18), eTypeIsFloat = (1u << 19),
1272 eTypeIsComplex = (1u << 20), eTypeIsSigned = (1u << 21),
1273 eTypeInstanceIsPointer = (1u << 22)};
1274
1275FLAGS_ENUM(CommandFlags){
1276 /// eCommandRequiresTarget
1277 ///
1278 /// Ensures a valid target is contained in m_exe_ctx prior to executing the
1279 /// command. If a target doesn't exist or is invalid, the command will fail
1280 /// and CommandObject::GetInvalidTargetDescription() will be returned as the
1281 /// error. CommandObject subclasses can override the virtual function for
1282 /// GetInvalidTargetDescription() to provide custom strings when needed.
1283 eCommandRequiresTarget = (1u << 0),
1284 /// eCommandRequiresProcess
1285 ///
1286 /// Ensures a valid process is contained in m_exe_ctx prior to executing the
1287 /// command. If a process doesn't exist or is invalid, the command will fail
1288 /// and CommandObject::GetInvalidProcessDescription() will be returned as
1289 /// the error. CommandObject subclasses can override the virtual function
1290 /// for GetInvalidProcessDescription() to provide custom strings when
1291 /// needed.
1292 eCommandRequiresProcess = (1u << 1),
1293 /// eCommandRequiresThread
1294 ///
1295 /// Ensures a valid thread is contained in m_exe_ctx prior to executing the
1296 /// command. If a thread doesn't exist or is invalid, the command will fail
1297 /// and CommandObject::GetInvalidThreadDescription() will be returned as the
1298 /// error. CommandObject subclasses can override the virtual function for
1299 /// GetInvalidThreadDescription() to provide custom strings when needed.
1300 eCommandRequiresThread = (1u << 2),
1301 /// eCommandRequiresFrame
1302 ///
1303 /// Ensures a valid frame is contained in m_exe_ctx prior to executing the
1304 /// command. If a frame doesn't exist or is invalid, the command will fail
1305 /// and CommandObject::GetInvalidFrameDescription() will be returned as the
1306 /// error. CommandObject subclasses can override the virtual function for
1307 /// GetInvalidFrameDescription() to provide custom strings when needed.
1308 eCommandRequiresFrame = (1u << 3),
1309 /// eCommandRequiresRegContext
1310 ///
1311 /// Ensures a valid register context (from the selected frame if there is a
1312 /// frame in m_exe_ctx, or from the selected thread from m_exe_ctx) is
1313 /// available from m_exe_ctx prior to executing the command. If a target
1314 /// doesn't exist or is invalid, the command will fail and
1315 /// CommandObject::GetInvalidRegContextDescription() will be returned as the
1316 /// error. CommandObject subclasses can override the virtual function for
1317 /// GetInvalidRegContextDescription() to provide custom strings when needed.
1318 eCommandRequiresRegContext = (1u << 4),
1319 /// eCommandTryTargetAPILock
1320 ///
1321 /// Attempts to acquire the target lock if a target is selected in the
1322 /// command interpreter. If the command object fails to acquire the API
1323 /// lock, the command will fail with an appropriate error message.
1324 eCommandTryTargetAPILock = (1u << 5),
1325 /// eCommandProcessMustBeLaunched
1326 ///
1327 /// Verifies that there is a launched process in m_exe_ctx, if there isn't,
1328 /// the command will fail with an appropriate error message.
1329 eCommandProcessMustBeLaunched = (1u << 6),
1330 /// eCommandProcessMustBePaused
1331 ///
1332 /// Verifies that there is a paused process in m_exe_ctx, if there isn't,
1333 /// the command will fail with an appropriate error message.
1334 eCommandProcessMustBePaused = (1u << 7),
1335 /// eCommandProcessMustBeTraced
1336 ///
1337 /// Verifies that the process is being traced by a Trace plug-in, if it
1338 /// isn't the command will fail with an appropriate error message.
1339 eCommandProcessMustBeTraced = (1u << 8),
1340 /// eCommandAllowsDummyTarget
1341 ///
1342 /// Indicates that the command can legitimately operate on the dummy target
1343 /// (e.g. `breakpoint set` priming future targets). Without this flag,
1344 /// CommandObject::GetTarget filters the dummy target out and returns null
1345 /// when no real target is selected.
1346 eCommandAllowsDummyTarget = (1u << 9)};
1347
1348/// Whether a summary should cap how much data it returns to users or not.
1353
1354/// The result from a command interpreter run.
1356 /// Command interpreter finished successfully.
1358 /// Stopped because the corresponding option was set and the inferior crashed.
1360 /// Stopped because the corresponding option was set and a command returned an
1361 /// error.
1363 /// Stopped because quit was requested.
1365};
1366
1367// Style of core file to create when calling SaveCore.
1375
1376/// Events that might happen during a trace session.
1378 /// Tracing was disabled for some time due to a software trigger.
1380 /// Tracing was disable for some time due to a hardware trigger.
1382 /// Event due to CPU change for a thread. This event is also fired when
1383 /// suddenly it's not possible to identify the cpu of a given thread.
1385 /// Event due to a CPU HW clock tick.
1387 /// The underlying tracing technology emitted a synchronization event used by
1388 /// trace processors.
1390};
1391
1392// Enum used to identify which kind of item a \a TraceCursor is pointing at
1398
1399/// Enum to indicate the reference point when invoking \a TraceCursor::Seek().
1400/// The following values are inspired by \a std::istream::seekg.
1402 /// The beginning of the trace, i.e the oldest item.
1404 /// The current position in the trace.
1406 /// The end of the trace, i.e the most recent item.
1408};
1409
1410/// Enum to control the verbosity level of `dwim-print` execution.
1412 /// Run `dwim-print` with no verbosity.
1414 /// Print a message when `dwim-print` uses `expression` evaluation.
1416 /// Always print a message indicating how `dwim-print` is evaluating its
1417 /// expression.
1419};
1420
1423 /// Watchpoint was created watching a variable
1425 /// Watchpoint was created watching the result of an expression that was
1426 /// evaluated at creation time.
1428};
1429
1435 eSymbolCompletion = (1ul << 3),
1436 eModuleCompletion = (1ul << 4),
1457 eCustomCompletion = (1ul << 25),
1458 eThreadIDCompletion = (1ul << 26),
1460 // This last enum element is just for input validation.
1461 // Add new completions before this element,
1462 // and then increment eTerminatorCompletion's shift value
1464};
1465
1466/// Specifies if children need to be re-computed after a call to \ref
1467/// SyntheticChildrenFrontEnd::Update.
1469 /// Children need to be recomputed dynamically.
1471
1472 /// Children did not change and don't need to be recomputed; re-use what we
1473 /// computed the last time we called Update.
1475};
1476
1482
1489
1490/// Used in the SBProcess AddressMask/FixAddress methods.
1497
1498/// Used in the SBProcess AddressMask/FixAddress methods.
1505
1506/// Used by the debugger to indicate which events are being broadcasted.
1518
1519/// Used for expressing severity in logs and diagnostics.
1523 eSeverityInfo, // Equivalent to Remark used in clang.
1524};
1525
1526/// Callback return value, indicating whether it handled printing the
1527/// CommandReturnObject or deferred doing so to the CommandInterpreter.
1529 /// The callback deferred printing the command return object.
1531 /// The callback handled printing the command return object.
1533};
1534
1535/// Used to determine when to show disassembly.
1542
1549
1551 eNameMatchStyleAuto = eFunctionNameTypeAuto,
1552 eNameMatchStyleFull = eFunctionNameTypeFull,
1553 eNameMatchStyleBase = eFunctionNameTypeBase,
1554 eNameMatchStyleMethod = eFunctionNameTypeMethod,
1555 eNameMatchStyleSelector = eFunctionNameTypeSelector,
1556 eNameMatchStyleRegex = eFunctionNameTypeSelector << 1
1557};
1558
1559/// Data Inspection Language (DIL) evaluation modes. DIL will only attempt
1560/// evaluating expressions that contain tokens allowed by a selected mode.
1562 /// Allowed: identifiers, operators: '.'.
1564 /// Allowed: identifiers, integers, operators: '.', '->', '*', '&', '[]'.
1566 /// Allowed: everything supported by DIL. \see lldb/docs/dil-expr-lang.ebnf
1568};
1569
1570/// When the Process plugin can retrieve information about all binaries loaded
1571/// in the target process, or given a list of binary load addresses, this enum
1572/// specifies how much information needed from the Process plugin; there may be
1573/// performance reasons to limit the amount of information returned.
1580
1581} // namespace lldb
1582
1583#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
@ eProcessNameCompletion
@ eManagedPluginCompletion
@ eTerminatorCompletion
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
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
static constexpr unsigned ValueTypeSyntheticMask
A mask that we can use to check if the value type is synthetic or not.
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
@ eArgTypeRecognizerID
@ 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
@ eValueTypeVTable
virtual function table
@ eValueTypeVariableGlobal
globals variable
@ eValueTypeConstResult
constant result variables
@ 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
@ 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.