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.
273
274/// Register numbering types.
275// See RegisterContext::ConvertRegisterKindToRegisterNumber to convert any of
276// these to the lldb internal register numbering scheme (eRegisterKindLLDB).
278 /// the register numbers seen in eh_frame
280 /// the register numbers seen DWARF
282 /// insn ptr reg, stack ptr reg, etc not specific to any particular target
284 /// num used by the process plugin - e.g. by the remote gdb-protocol stub
285 /// program
287 /// lldb's internal register numbers
290};
291
292/// Thread stop reasons.
316
317/// Command Return Status Types.
328
329/// The results of expression evaluation.
342
353
354/// Connection Status Types.
356 /// Success
358 /// End-of-file encountered
360 /// Check GetError() for details
362 /// Request timed out
364 /// No connection
366 /// Lost connection while connected to a valid connection
368 /// Interrupted read
370};
371
374 /// Generic errors that can be any value.
376 /// Mach kernel error codes.
378 /// POSIX error codes.
380 /// These are from the ExpressionResults enum.
382 /// Standard Win32 error codes.
384};
385
386enum ValueType : uint32_t {
388 /// globals variable
390 /// static variable
392 /// function argument variables
394 /// function local variables
396 /// stack frame register value
398 /// A collection of stack frame register values
400 /// constant result variables
402 /// thread local storage variable
404 /// virtual function table
406 /// function pointer in virtual function table
408
410
411 /// A flag that indicates if the value type is synthetic or not.
412 // NOTE: This limits the number of value types to 31, but that's 3x more than
413 // what we currently have now. See lldb/Utility/ValueType.h for helpers for
414 // working with synthetic value types.
416
418};
419
420/// Token size/granularities for Input Readers.
421
429
430/// These mask bits allow a common interface for queries that can limit the
431/// amount of information that gets parsed to only the information that is
432/// requested. These bits also can indicate what actually did get resolved
433/// during query function calls.
434///
435/// Each definition corresponds to a one of the member variables in this class,
436/// and requests that that item be resolved, or indicates that the member did
437/// get resolved.
438FLAGS_ENUM(SymbolContextItem){
439 /// Set when \a target is requested from a query, or was located in query
440 /// results
441 eSymbolContextTarget = (1u << 0),
442 /// Set when \a module is requested from a query, or was located in query
443 /// results
444 eSymbolContextModule = (1u << 1),
445 /// Set when \a comp_unit is requested from a query, or was located in query
446 /// results
447 eSymbolContextCompUnit = (1u << 2),
448 /// Set when \a function is requested from a query, or was located in query
449 /// results
450 eSymbolContextFunction = (1u << 3),
451 /// Set when the deepest \a block is requested from a query, or was located
452 /// in query results
453 eSymbolContextBlock = (1u << 4),
454 /// Set when \a line_entry is requested from a query, or was located in
455 /// query results
456 eSymbolContextLineEntry = (1u << 5),
457 /// Set when \a symbol is requested from a query, or was located in query
458 /// results
459 eSymbolContextSymbol = (1u << 6),
460 /// Indicates to try and lookup everything up during a routine symbol
461 /// context query.
462 eSymbolContextEverything = ((eSymbolContextSymbol << 1) - 1u),
463 /// Set when \a global or static variable is requested from a query, or was
464 /// located in query results. eSymbolContextVariable is potentially
465 /// expensive to lookup so it isn't included in eSymbolContextEverything
466 /// which stops it from being used during frame PC lookups and many other
467 /// potential address to symbol context lookups.
468 eSymbolContextVariable = (1u << 7),
469
470 // Keep this last and up-to-date for what the last enum value is.
471 eSymbolContextLastItem = eSymbolContextVariable,
472};
473LLDB_MARK_AS_BITMASK_ENUM(SymbolContextItem)
474
475FLAGS_ENUM(Permissions){ePermissionsWritable = (1u << 0),
476 ePermissionsReadable = (1u << 1),
477 ePermissionsExecutable = (1u << 2)};
478LLDB_MARK_AS_BITMASK_ENUM(Permissions)
479
481 /// reader is newly pushed onto the reader stack
483 /// an async output event occurred; the reader may want to do something
485 /// reader is on top of the stack again after another reader was popped off
487 /// another reader was pushed on the stack
489 /// reader got one of its tokens (granularity)
491 /// reader received an interrupt signal (probably from a control-c)
493 /// reader received an EOF char (probably from a control-d)
495 /// reader was just popped off the stack and is done
497};
498
499FLAGS_ENUM(BreakpointEventType){
500 eBreakpointEventTypeInvalidType = (1u << 0),
501 eBreakpointEventTypeAdded = (1u << 1),
502 eBreakpointEventTypeRemoved = (1u << 2),
503 /// Locations added doesn't get sent when the breakpoint is created
504 eBreakpointEventTypeLocationsAdded = (1u << 3),
505 eBreakpointEventTypeLocationsRemoved = (1u << 4),
506 eBreakpointEventTypeLocationsResolved = (1u << 5),
507 eBreakpointEventTypeEnabled = (1u << 6),
508 eBreakpointEventTypeDisabled = (1u << 7),
509 eBreakpointEventTypeCommandChanged = (1u << 8),
510 eBreakpointEventTypeConditionChanged = (1u << 9),
511 eBreakpointEventTypeIgnoreChanged = (1u << 10),
512 eBreakpointEventTypeThreadChanged = (1u << 11),
513 eBreakpointEventTypeAutoContinueChanged = (1u << 12)};
514
515FLAGS_ENUM(WatchpointEventType){
516 eWatchpointEventTypeInvalidType = (1u << 0),
517 eWatchpointEventTypeAdded = (1u << 1),
518 eWatchpointEventTypeRemoved = (1u << 2),
519 eWatchpointEventTypeEnabled = (1u << 6),
520 eWatchpointEventTypeDisabled = (1u << 7),
521 eWatchpointEventTypeCommandChanged = (1u << 8),
522 eWatchpointEventTypeConditionChanged = (1u << 9),
523 eWatchpointEventTypeIgnoreChanged = (1u << 10),
524 eWatchpointEventTypeThreadChanged = (1u << 11),
525 eWatchpointEventTypeTypeChanged = (1u << 12)};
526
528 /// Don't stop when the watched memory region is written to.
530 /// Stop on any write access to the memory region, even if the value doesn't
531 /// change. On some architectures, a write near the memory region may be
532 /// falsely reported as a match, and notify this spurious stop as a watchpoint
533 /// trap.
535 /// Stop on a write to the memory region that changes its value. This is most
536 /// likely the behavior a user expects, and is the behavior in gdb. lldb can
537 /// silently ignore writes near the watched memory region that are reported as
538 /// accesses to lldb.
540};
541
542/// Programming language type.
543///
544/// These enumerations use the same language enumerations as the DWARF
545/// specification for ease of use and consistency. The enum -> string code is in
546/// Language.cpp, don't change this table without updating that code as well.
547///
548/// This datatype is used in SBExpressionOptions::SetLanguage() which makes this
549/// type API. Do not change its underlying storage type!
551 /// Unknown or invalid language value.
553 /// ISO C:1989.
555 /// Non-standardized C, such as K&R.
557 /// ISO Ada:1983.
559 /// ISO C++:1998.
561 /// ISO Cobol:1974.
563 /// ISO Cobol:1985.
565 /// ISO Fortran 77.
567 /// ISO Fortran 90.
569 /// ISO Pascal:1983.
571 /// ISO Modula-2:1996.
573 /// Java.
575 /// ISO C:1999.
577 /// ISO Ada:1995.
579 /// ISO Fortran 95.
581 /// ANSI PL/I:1976.
583 /// Objective-C.
585 /// Objective-C++.
587 /// Unified Parallel C.
589 /// D.
591 /// Python.
593 // NOTE: The below are DWARF5 constants, subject to change upon
594 // completion of the DWARF5 specification
595 /// OpenCL.
597 /// Go.
599 /// Modula 3.
601 /// Haskell.
603 /// ISO C++:2003.
605 /// ISO C++:2011.
607 /// OCaml.
609 /// Rust.
611 /// ISO C:2011.
613 /// Swift.
615 /// Julia.
617 /// Dylan.
619 /// ISO C++:2014.
621 /// ISO Fortran 2003.
623 /// ISO Fortran 2008.
630 /// ISO C++:2017.
632 /// ISO C++:2020.
643
644 // Vendor Extensions
645 // Note: Language::GetNameForLanguageType
646 // assumes these can be used as indexes into array language_names, and
647 // Language::SetLanguageFromCString and Language::AsCString assume these can
648 // be used as indexes into array g_languages.
649 /// Mips_Assembler.
652};
653
664
670
676
683
691
802 eArgTypeLastArg // Always keep this entry as the last entry in this
803 // enumeration!!
804};
805
806/// Symbol types.
807// Symbol holds the SymbolType in a 6-bit field (m_type), so if you get over 63
808// entries you will have to resize that field.
842
846 /// The section contains child sections
849 /// Inlined C string data
851 /// Pointers to C string data
853 /// Address of a symbol in the symbol table
861 /// Pointer to function pointer + selector
863 /// Objective-C const CFString/NSString objects
884 /// Elf SHT_SYMTAB section
886 /// Elf SHT_DYNSYM section
888 /// Elf SHT_REL or SHT_REL section
890 /// Elf SHT_DYNAMIC section
895 /// compact unwind section in Mach-O, __TEXT,__unwind_info
898 /// Dummy section for symbols with absolute address
901 /// DWARF .debug_types section
903 /// DWARF v5 .debug_names
906 /// DWARF v5 .debug_line_str
908 /// DWARF v5 .debug_rnglists
910 /// DWARF v5 .debug_loclists
926};
927
928FLAGS_ENUM(EmulateInstructionOptions){
929 eEmulateInstructionOptionNone = (0u),
930 eEmulateInstructionOptionAutoAdvancePC = (1u << 0),
931 eEmulateInstructionOptionIgnoreConditions = (1u << 1)};
932
933FLAGS_ENUM(FunctionNameType){
934 eFunctionNameTypeNone = 0u,
935 /// Automatically figure out which FunctionNameType bits to set based on the
936 /// function name.
937 eFunctionNameTypeAuto = (1u << 1),
938 /// The function name. For C this is the same as just the name of the
939 /// function. For C++ this is the mangled or demangled version of the
940 /// mangled name. For ObjC this is the full function signature with the + or
941 /// - and the square brackets and the class and selector.
942 eFunctionNameTypeFull = (1u << 2),
943 /// The function name only, no namespaces or arguments and no class methods
944 /// or selectors will be searched.
945 eFunctionNameTypeBase = (1u << 3),
946 /// Find function by method name (C++) with no namespace or arguments.
947 eFunctionNameTypeMethod = (1u << 4),
948 /// Find function by selector name (ObjC) names.
949 eFunctionNameTypeSelector = (1u << 5),
950 /// DEPRECATED: use eFunctionNameTypeAuto.
951 eFunctionNameTypeAny = eFunctionNameTypeAuto};
952LLDB_MARK_AS_BITMASK_ENUM(FunctionNameType)
953
954/// Basic types enumeration for the public API SBType::GetBasicType().
992
993/// Deprecated
996
997 /// Intel Processor Trace
999};
1000
1014
1015FLAGS_ENUM(TypeClass){
1016 eTypeClassInvalid = (0u), eTypeClassArray = (1u << 0),
1017 eTypeClassBlockPointer = (1u << 1), eTypeClassBuiltin = (1u << 2),
1018 eTypeClassClass = (1u << 3), eTypeClassComplexFloat = (1u << 4),
1019 eTypeClassComplexInteger = (1u << 5), eTypeClassEnumeration = (1u << 6),
1020 eTypeClassFunction = (1u << 7), eTypeClassMemberPointer = (1u << 8),
1021 eTypeClassObjCObject = (1u << 9), eTypeClassObjCInterface = (1u << 10),
1022 eTypeClassObjCObjectPointer = (1u << 11), eTypeClassPointer = (1u << 12),
1023 eTypeClassReference = (1u << 13), eTypeClassStruct = (1u << 14),
1024 eTypeClassTypedef = (1u << 15), eTypeClassUnion = (1u << 16),
1025 eTypeClassVector = (1u << 17),
1026 // Define the last type class as the MSBit of a 32 bit value
1027 eTypeClassOther = (1u << 31),
1028 // Define a mask that can be used for any type when finding types
1029 eTypeClassAny = (0xffffffffu)};
1031
1044
1045/// Type of match to be performed when looking for a formatter for a data type.
1046/// Used by classes like SBTypeNameSpecifier or lldb_private::TypeMatcher.
1054
1055/// Options that can be set for a formatter to alter its behavior. Not all of
1056/// these are applicable to all formatter types.
1057FLAGS_ENUM(TypeOptions){eTypeOptionNone = (0u),
1058 eTypeOptionCascade = (1u << 0),
1059 eTypeOptionSkipPointers = (1u << 1),
1060 eTypeOptionSkipReferences = (1u << 2),
1061 eTypeOptionHideChildren = (1u << 3),
1062 eTypeOptionHideValue = (1u << 4),
1063 eTypeOptionShowOneLiner = (1u << 5),
1064 eTypeOptionHideNames = (1u << 6),
1065 eTypeOptionNonCacheable = (1u << 7),
1066 eTypeOptionHideEmptyAggregates = (1u << 8),
1067 eTypeOptionFrontEndWantsDereference = (1u << 9),
1068 eTypeOptionCustomSubscripting = (1u << 10)};
1069
1070/// This is the return value for frame comparisons. If you are comparing frame A
1071/// to frame B the following cases arise:
1072///
1073/// 1) When frame A pushes frame B (or a frame that ends up pushing B) A is
1074/// Older than B.
1075///
1076/// 2) When frame A pushed frame B (or if frameA is on the stack but B is
1077/// not) A is Younger than B.
1078///
1079/// 3) When frame A and frame B have the same StackID, they are Equal.
1080///
1081/// 4) When frame A and frame B have the same immediate parent frame, but are
1082/// not equal, the comparison yields SameParent.
1083///
1084/// 5) If the two frames are on different threads or processes the comparison
1085/// is Invalid.
1086///
1087/// 6) If for some reason we can't figure out what went on, we return Unknown.
1096
1097/// File Permissions.
1098///
1099/// Designed to mimic the unix file permission bits so they can be used with
1100/// functions that set 'mode_t' to certain values for permissions.
1101FLAGS_ENUM(FilePermissions){
1102 eFilePermissionsUserRead = (1u << 8),
1103 eFilePermissionsUserWrite = (1u << 7),
1104 eFilePermissionsUserExecute = (1u << 6),
1105 eFilePermissionsGroupRead = (1u << 5),
1106 eFilePermissionsGroupWrite = (1u << 4),
1107 eFilePermissionsGroupExecute = (1u << 3),
1108 eFilePermissionsWorldRead = (1u << 2),
1109 eFilePermissionsWorldWrite = (1u << 1),
1110 eFilePermissionsWorldExecute = (1u << 0),
1111
1112 eFilePermissionsUserRW = (eFilePermissionsUserRead |
1113 eFilePermissionsUserWrite | 0),
1114 eFileFilePermissionsUserRX = (eFilePermissionsUserRead | 0 |
1115 eFilePermissionsUserExecute),
1116 eFilePermissionsUserRWX = (eFilePermissionsUserRead |
1117 eFilePermissionsUserWrite |
1118 eFilePermissionsUserExecute),
1119
1120 eFilePermissionsGroupRW = (eFilePermissionsGroupRead |
1121 eFilePermissionsGroupWrite | 0),
1122 eFilePermissionsGroupRX = (eFilePermissionsGroupRead | 0 |
1123 eFilePermissionsGroupExecute),
1124 eFilePermissionsGroupRWX = (eFilePermissionsGroupRead |
1125 eFilePermissionsGroupWrite |
1126 eFilePermissionsGroupExecute),
1127
1128 eFilePermissionsWorldRW = (eFilePermissionsWorldRead |
1129 eFilePermissionsWorldWrite | 0),
1130 eFilePermissionsWorldRX = (eFilePermissionsWorldRead | 0 |
1131 eFilePermissionsWorldExecute),
1132 eFilePermissionsWorldRWX = (eFilePermissionsWorldRead |
1133 eFilePermissionsWorldWrite |
1134 eFilePermissionsWorldExecute),
1135
1136 eFilePermissionsEveryoneR = (eFilePermissionsUserRead |
1137 eFilePermissionsGroupRead |
1138 eFilePermissionsWorldRead),
1139 eFilePermissionsEveryoneW = (eFilePermissionsUserWrite |
1140 eFilePermissionsGroupWrite |
1141 eFilePermissionsWorldWrite),
1142 eFilePermissionsEveryoneX = (eFilePermissionsUserExecute |
1143 eFilePermissionsGroupExecute |
1144 eFilePermissionsWorldExecute),
1145
1146 eFilePermissionsEveryoneRW = (eFilePermissionsEveryoneR |
1147 eFilePermissionsEveryoneW | 0),
1148 eFilePermissionsEveryoneRX = (eFilePermissionsEveryoneR | 0 |
1149 eFilePermissionsEveryoneX),
1150 eFilePermissionsEveryoneRWX = (eFilePermissionsEveryoneR |
1151 eFilePermissionsEveryoneW |
1152 eFilePermissionsEveryoneX),
1153 eFilePermissionsFileDefault = eFilePermissionsUserRW,
1154 eFilePermissionsDirectoryDefault = eFilePermissionsUserRWX,
1155};
1156
1157/// Queue work item types.
1158///
1159/// The different types of work that can be enqueued on a libdispatch aka Grand
1160/// Central Dispatch (GCD) queue.
1166
1167/// Queue type.
1168///
1169/// libdispatch aka Grand Central Dispatch (GCD) queues can be either serial
1170/// (executing on one thread) or concurrent (executing on multiple threads).
1176
1177/// Expression Evaluation Stages.
1178///
1179/// These are the cancellable stages of expression evaluation, passed to the
1180/// expression evaluation callback, so that you can interrupt expression
1181/// evaluation at the various points in its lifecycle.
1188
1189/// Architecture-agnostic categorization of instructions for traversing the
1190/// control flow of a trace.
1191///
1192/// A single instruction can match one or more of these categories.
1194 /// The instruction could not be classified.
1196 /// The instruction is something not listed below, i.e. it's a sequential
1197 /// instruction that doesn't affect the control flow of the program.
1199 /// The instruction is a near (function) call.
1201 /// The instruction is a near (function) return.
1203 /// The instruction is a near unconditional jump.
1205 /// The instruction is a near conditional jump.
1207 /// The instruction is a call-like far transfer. E.g. SYSCALL, SYSENTER, or
1208 /// FAR CALL.
1210 /// The instruction is a return-like far transfer. E.g. SYSRET, SYSEXIT, IRET,
1211 /// or FAR RET.
1213 /// The instruction is a jump-like far transfer. E.g. FAR JMP.
1215};
1216
1217/// Watchpoint Kind.
1218///
1219/// Indicates what types of events cause the watchpoint to fire. Used by Native
1220/// *Protocol-related classes.
1221FLAGS_ENUM(WatchpointKind){eWatchpointKindWrite = (1u << 0),
1222 eWatchpointKindRead = (1u << 1)};
1223
1232
1233/// Used with SBHostOS::GetLLDBPath (lldb::PathType) to find files that are
1234/// related to LLDB on the current host machine. Most files are relative to LLDB
1235/// or are in known locations.
1237 /// The directory where the lldb.so (unix) or LLDB mach-o file in
1238 /// LLDB.framework (MacOSX) exists
1240 /// Find LLDB support executable directory (debugserver, etc)
1242 /// Find LLDB header file directory
1244 /// Find Python modules (PYTHONPATH) directory
1246 /// System plug-ins directory
1248 /// User plug-ins directory
1250 /// The LLDB temp directory for this system that will be cleaned up on exit
1252 /// The LLDB temp directory for this system, NOT cleaned up on a process exit.
1254 /// Find path to Clang builtin headers
1256};
1257
1258/// Kind of member function.
1259///
1260/// Used by the type system.
1262 /// Not sure what the type of this is
1264 /// A function used to create instances
1266 /// A function used to tear down existing instances
1268 /// A function that applies to a specific instance
1270 /// A function that applies to a type rather than any instance
1272};
1273
1274/// String matching algorithm used by SBTarget.
1281
1282/// Bitmask that describes details about a type.
1283FLAGS_ENUM(TypeFlags){
1284 eTypeHasChildren = (1u << 0), eTypeHasValue = (1u << 1),
1285 eTypeIsArray = (1u << 2), eTypeIsBlock = (1u << 3),
1286 eTypeIsBuiltIn = (1u << 4), eTypeIsClass = (1u << 5),
1287 eTypeIsCPlusPlus = (1u << 6), eTypeIsEnumeration = (1u << 7),
1288 eTypeIsFuncPrototype = (1u << 8), eTypeIsMember = (1u << 9),
1289 eTypeIsObjC = (1u << 10), eTypeIsPointer = (1u << 11),
1290 eTypeIsReference = (1u << 12), eTypeIsStructUnion = (1u << 13),
1291 eTypeIsTemplate = (1u << 14), eTypeIsTypedef = (1u << 15),
1292 eTypeIsVector = (1u << 16), eTypeIsScalar = (1u << 17),
1293 eTypeIsInteger = (1u << 18), eTypeIsFloat = (1u << 19),
1294 eTypeIsComplex = (1u << 20), eTypeIsSigned = (1u << 21),
1295 eTypeInstanceIsPointer = (1u << 22)};
1296
1297FLAGS_ENUM(CommandFlags){
1298 /// eCommandRequiresTarget
1299 ///
1300 /// Ensures a valid target is contained in m_exe_ctx prior to executing the
1301 /// command. If a target doesn't exist or is invalid, the command will fail
1302 /// and CommandObject::GetInvalidTargetDescription() will be returned as the
1303 /// error. CommandObject subclasses can override the virtual function for
1304 /// GetInvalidTargetDescription() to provide custom strings when needed.
1305 eCommandRequiresTarget = (1u << 0),
1306 /// eCommandRequiresProcess
1307 ///
1308 /// Ensures a valid process is contained in m_exe_ctx prior to executing the
1309 /// command. If a process doesn't exist or is invalid, the command will fail
1310 /// and CommandObject::GetInvalidProcessDescription() will be returned as
1311 /// the error. CommandObject subclasses can override the virtual function
1312 /// for GetInvalidProcessDescription() to provide custom strings when
1313 /// needed.
1314 eCommandRequiresProcess = (1u << 1),
1315 /// eCommandRequiresThread
1316 ///
1317 /// Ensures a valid thread is contained in m_exe_ctx prior to executing the
1318 /// command. If a thread doesn't exist or is invalid, the command will fail
1319 /// and CommandObject::GetInvalidThreadDescription() will be returned as the
1320 /// error. CommandObject subclasses can override the virtual function for
1321 /// GetInvalidThreadDescription() to provide custom strings when needed.
1322 eCommandRequiresThread = (1u << 2),
1323 /// eCommandRequiresFrame
1324 ///
1325 /// Ensures a valid frame is contained in m_exe_ctx prior to executing the
1326 /// command. If a frame doesn't exist or is invalid, the command will fail
1327 /// and CommandObject::GetInvalidFrameDescription() will be returned as the
1328 /// error. CommandObject subclasses can override the virtual function for
1329 /// GetInvalidFrameDescription() to provide custom strings when needed.
1330 eCommandRequiresFrame = (1u << 3),
1331 /// eCommandRequiresRegContext
1332 ///
1333 /// Ensures a valid register context (from the selected frame if there is a
1334 /// frame in m_exe_ctx, or from the selected thread from m_exe_ctx) is
1335 /// available from m_exe_ctx prior to executing the command. If a target
1336 /// doesn't exist or is invalid, the command will fail and
1337 /// CommandObject::GetInvalidRegContextDescription() will be returned as the
1338 /// error. CommandObject subclasses can override the virtual function for
1339 /// GetInvalidRegContextDescription() to provide custom strings when needed.
1340 eCommandRequiresRegContext = (1u << 4),
1341 /// eCommandTryTargetAPILock
1342 ///
1343 /// Attempts to acquire the target lock if a target is selected in the
1344 /// command interpreter. If the command object fails to acquire the API
1345 /// lock, the command will fail with an appropriate error message.
1346 eCommandTryTargetAPILock = (1u << 5),
1347 /// eCommandProcessMustBeLaunched
1348 ///
1349 /// Verifies that there is a launched process in m_exe_ctx, if there isn't,
1350 /// the command will fail with an appropriate error message.
1351 eCommandProcessMustBeLaunched = (1u << 6),
1352 /// eCommandProcessMustBePaused
1353 ///
1354 /// Verifies that there is a paused process in m_exe_ctx, if there isn't,
1355 /// the command will fail with an appropriate error message.
1356 eCommandProcessMustBePaused = (1u << 7),
1357 /// eCommandProcessMustBeTraced
1358 ///
1359 /// Verifies that the process is being traced by a Trace plug-in, if it
1360 /// isn't the command will fail with an appropriate error message.
1361 eCommandProcessMustBeTraced = (1u << 8),
1362 /// eCommandAllowsDummyTarget
1363 ///
1364 /// Indicates that the command can legitimately operate on the dummy target
1365 /// (e.g. `breakpoint set` priming future targets). Without this flag,
1366 /// CommandObject::GetTarget filters the dummy target out and returns null
1367 /// when no real target is selected.
1368 eCommandAllowsDummyTarget = (1u << 9)};
1369
1370/// Whether a summary should cap how much data it returns to users or not.
1375
1376/// The result from a command interpreter run.
1378 /// Command interpreter finished successfully.
1380 /// Stopped because the corresponding option was set and the inferior crashed.
1382 /// Stopped because the corresponding option was set and a command returned an
1383 /// error.
1385 /// Stopped because quit was requested.
1387};
1388
1389// Style of core file to create when calling SaveCore.
1397
1398/// Events that might happen during a trace session.
1400 /// Tracing was disabled for some time due to a software trigger.
1402 /// Tracing was disable for some time due to a hardware trigger.
1404 /// Event due to CPU change for a thread. This event is also fired when
1405 /// suddenly it's not possible to identify the cpu of a given thread.
1407 /// Event due to a CPU HW clock tick.
1409 /// The underlying tracing technology emitted a synchronization event used by
1410 /// trace processors.
1412};
1413
1414// Enum used to identify which kind of item a \a TraceCursor is pointing at
1420
1421/// Enum to indicate the reference point when invoking \a TraceCursor::Seek().
1422/// The following values are inspired by \a std::istream::seekg.
1424 /// The beginning of the trace, i.e the oldest item.
1426 /// The current position in the trace.
1428 /// The end of the trace, i.e the most recent item.
1430};
1431
1432/// Enum to control the verbosity level of `dwim-print` execution.
1434 /// Run `dwim-print` with no verbosity.
1436 /// Print a message when `dwim-print` uses `expression` evaluation.
1438 /// Always print a message indicating how `dwim-print` is evaluating its
1439 /// expression.
1441};
1442
1445 /// Watchpoint was created watching a variable
1447 /// Watchpoint was created watching the result of an expression that was
1448 /// evaluated at creation time.
1450};
1451
1457 eSymbolCompletion = (1ul << 3),
1458 eModuleCompletion = (1ul << 4),
1479 eCustomCompletion = (1ul << 25),
1480 eThreadIDCompletion = (1ul << 26),
1483 // This last enum element is just for input validation.
1484 // Add new completions before this element,
1485 // and then increment eTerminatorCompletion's shift value
1487};
1488
1489/// Specifies if children need to be re-computed after a call to \ref
1490/// SyntheticChildrenFrontEnd::Update.
1492 /// Children need to be recomputed dynamically.
1494
1495 /// Children did not change and don't need to be recomputed; re-use what we
1496 /// computed the last time we called Update.
1498};
1499
1505
1512
1513/// Used in the SBProcess AddressMask/FixAddress methods.
1520
1521/// Used in the SBProcess AddressMask/FixAddress methods.
1528
1529/// Used by the debugger to indicate which events are being broadcasted.
1541
1542/// Used for expressing severity in logs and diagnostics.
1546 eSeverityInfo, // Equivalent to Remark used in clang.
1547};
1548
1549/// Callback return value, indicating whether it handled printing the
1550/// CommandReturnObject or deferred doing so to the CommandInterpreter.
1552 /// The callback deferred printing the command return object.
1554 /// The callback handled printing the command return object.
1556};
1557
1558/// Used to determine when to show disassembly.
1565
1572
1574 eNameMatchStyleAuto = eFunctionNameTypeAuto,
1575 eNameMatchStyleFull = eFunctionNameTypeFull,
1576 eNameMatchStyleBase = eFunctionNameTypeBase,
1577 eNameMatchStyleMethod = eFunctionNameTypeMethod,
1578 eNameMatchStyleSelector = eFunctionNameTypeSelector,
1579 eNameMatchStyleRegex = eFunctionNameTypeSelector << 1
1580};
1581
1582/// Data Inspection Language (DIL) evaluation modes. DIL will only attempt
1583/// evaluating expressions that contain tokens allowed by a selected mode.
1585 /// Allowed: identifiers, operators: '.'.
1587 /// Allowed: identifiers, integers, operators: '.', '->', '*', '&', '[]'.
1589 /// Allowed: everything supported by DIL. \see lldb/docs/dil-expr-lang.ebnf
1591};
1592
1593/// When the Process plugin can retrieve information about all binaries loaded
1594/// in the target process, or given a list of binary load addresses, this enum
1595/// specifies how much information needed from the Process plugin; there may be
1596/// performance reasons to limit the amount of information returned.
1603
1604/// This reflects the BreakpointResolver::ResolverTy, but this is a convenient
1605/// enum for making a mask to pass to RegisterOverrideResolver. It has to be
1606/// kept in sync with the ResolverTy.
1607FLAGS_ENUM(BreakpointResolverType){
1608 eResolverUnknown = 0, eResolverFileAndLine = (1 << 0),
1609 eResolverAddress = (1 << 1), eResolverName = (1 << 2),
1610 eResolverFileRegex = (1 << 3), eResolverPython = (1 << 4),
1611 eResolverException = (1 << 5), eResolverLastKnown = eResolverException,
1612};
1614 eResolverFileAndLine | eResolverAddress | eResolverName |
1615 eResolverFileRegex | eResolverPython | eResolverException;
1616
1617} // namespace lldb
1618
1619#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
@ eScriptedExtensionScriptedPlatform
@ eScriptedExtensionScriptedProcess
@ eScriptedExtensionScriptedFrame
@ eScriptedExtensionScriptedBreakpointResolver
@ kLastScriptedExtension
@ eScriptedExtensionScriptedThreadPlan
@ eScriptedExtensionScriptedFrameProvider
@ eScriptedExtensionScriptedThread
@ eScriptedExtensionScriptedStackFrameRecognizer
@ eScriptedExtensionInvalid
Severity
Used for expressing severity in logs and diagnostics.
TraceType
Deprecated.
@ eTraceTypeProcessorTrace
Intel Processor Trace.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
@ eDescriptionLevelBrief
@ kNumDescriptionLevels
@ eDescriptionLevelInitial
@ eDescriptionLevelFull
@ eDescriptionLevelVerbose
DebuggerBroadcastBit
Used by the debugger to indicate which events are being broadcasted.
@ eBroadcastBitProgressCategory
Deprecated.
@ eBroadcastBitExternalProgress
@ eBroadcastBitProgress
@ eBroadcastSymbolChange
@ eBroadcastBitExternalProgressCategory
Deprecated.
BasicType
Basic types enumeration for the public API SBType::GetBasicType().
@ eBasicTypeUnsignedShort
@ eBasicTypeSignedChar
@ eBasicTypeUnsignedInt128
@ eBasicTypeFloatComplex
@ eBasicTypeUnsignedWChar
@ eBasicTypeUnsignedLong
@ eBasicTypeLongDoubleComplex
@ eBasicTypeSignedWChar
@ eBasicTypeUnsignedChar
@ eBasicTypeUnsignedLongLong
@ eBasicTypeDoubleComplex
@ eBasicTypeLongDouble
@ eBasicTypeUnsignedInt
@ eBasicTypeObjCClass
RunDirection
Execution directions.
@ eWatchpointWriteTypeOnModify
Stop on a write to the memory region that changes its value.
@ eWatchpointWriteTypeAlways
Stop on any write access to the memory region, even if the value doesn't change.
@ eWatchpointWriteTypeDisabled
Don't stop when the watched memory region is written to.
ChildCacheState
Specifies if children need to be re-computed after a call to SyntheticChildrenFrontEnd::Update.
@ eRefetch
Children need to be recomputed dynamically.
@ eReuse
Children did not change and don't need to be recomputed; re-use what we computed the last time we cal...
@ eWatchPointValueKindInvalid
@ eWatchPointValueKindExpression
Watchpoint was created watching the result of an expression that was evaluated at creation time.
@ eWatchPointValueKindVariable
Watchpoint was created watching a variable.
@ ePluginDomainKindTarget
@ ePluginDomainKindGlobal
@ ePluginDomainKindDebugger
AddressMaskRange
Used in the SBProcess AddressMask/FixAddress methods.
@ eAddressMaskRangeHigh
CommandInterpreterResult
The result from a command interpreter run.
@ eCommandInterpreterResultInferiorCrash
Stopped because the corresponding option was set and the inferior crashed.
@ eCommandInterpreterResultSuccess
Command interpreter finished successfully.
@ eCommandInterpreterResultCommandError
Stopped because the corresponding option was set and a command returned an error.
@ eCommandInterpreterResultQuitRequested
Stopped because quit was requested.
ConnectionStatus
Connection Status Types.
@ eConnectionStatusError
Check GetError() for details.
@ eConnectionStatusInterrupted
Interrupted read.
@ eConnectionStatusTimedOut
Request timed out.
@ eConnectionStatusEndOfFile
End-of-file encountered.
@ eConnectionStatusSuccess
Success.
@ eConnectionStatusLostConnection
Lost connection while connected to a valid connection.
@ eConnectionStatusNoConnection
No connection.
TraceEvent
Events that might happen during a trace session.
@ eTraceEventSyncPoint
The underlying tracing technology emitted a synchronization event used by trace processors.
@ eTraceEventCPUChanged
Event due to CPU change for a thread.
@ eTraceEventHWClockTick
Event due to a CPU HW clock tick.
@ eTraceEventDisabledHW
Tracing was disable for some time due to a hardware trigger.
@ eTraceEventDisabledSW
Tracing was disabled for some time due to a software trigger.
Format
Display format definitions.
@ eFormatCString
NULL terminated C strings.
@ eFormatCharArray
Print characters with no single quotes, used for character arrays that can contain non printable char...
@ eFormatInstruction
Disassemble an opcode.
@ eFormatVectorOfChar
@ eFormatVectorOfUInt64
@ eFormatVoid
Do not print this.
@ eFormatVectorOfFloat16
@ eFormatVectorOfSInt64
@ eFormatComplex
Floating point complex type.
@ eFormatHexFloat
ISO C99 hex float string.
@ eFormatBytesWithASCII
@ eFormatOSType
OS character codes encoded into an integer 'PICT' 'text' etc...
@ eFormatAddressInfo
Describe what an address points to (func + offset with file/line, symbol + offset,...
@ eFormatVectorOfUInt128
@ eFormatVectorOfUInt8
@ eFormatComplexFloat
@ eFormatVectorOfFloat32
@ eFormatVectorOfSInt32
@ eFormatVectorOfSInt8
@ eFormatVectorOfUInt16
@ eFormatHexUppercase
@ eFormatVectorOfFloat64
@ eFormatCharPrintable
Only printable characters, '.' if not printable.
@ eFormatComplexInteger
Integer complex type.
@ eFormatVectorOfSInt16
@ eFormatFloat128
Disambiguate between 128-bit long double (which uses eFormatFloat) and __float128 (which uses eFormat...
@ eFormatVectorOfUInt32
FrameComparison
This is the return value for frame comparisons.
@ eFrameCompareSameParent
DWIMPrintVerbosity
Enum to control the verbosity level of dwim-print execution.
@ eDWIMPrintVerbosityFull
Always print a message indicating how dwim-print is evaluating its expression.
@ eDWIMPrintVerbosityNone
Run dwim-print with no verbosity.
@ eDWIMPrintVerbosityExpression
Print a message when dwim-print uses expression evaluation.
StateType
Process and Thread States.
@ eStateUnloaded
Process is object is valid, but not currently loaded.
@ eStateConnected
Process is connected to remote debug services, but not launched or attached to anything yet.
@ eStateDetached
Process has been detached and can't be examined.
@ eStateStopped
Process or thread is stopped and can be examined.
@ eStateSuspended
Process or thread is in a suspended state as far as the debugger is concerned while other processes o...
@ eStateRunning
Process or thread is running and can't be examined.
@ eStateLaunching
Process is in the process of launching.
@ eStateAttaching
Process is currently trying to attach.
@ eStateExited
Process has exited and can't be examined.
@ eStateStepping
Process or thread is in the process of stepping and can not be examined.
@ eStateCrashed
Process or thread has crashed and can be examined.
LanguageType
Programming language type.
@ eLanguageTypeC_plus_plus_20
ISO C++:2020.
@ eLanguageTypeC_plus_plus_14
ISO C++:2014.
@ eLanguageTypeHaskell
Haskell.
@ eLanguageTypeRenderScript
@ eLanguageTypePLI
ANSI PL/I:1976.
@ eLanguageTypeC11
ISO C:2011.
@ eLanguageTypeJava
Java.
@ eLanguageTypeFortran08
ISO Fortran 2008.
@ eLanguageTypeFortran18
@ eLanguageTypeC99
ISO C:1999.
@ eLanguageTypePascal83
ISO Pascal:1983.
@ eLanguageTypeModula3
Modula 3.
@ eLanguageTypeModula2
ISO Modula-2:1996.
@ eLanguageTypeOCaml
OCaml.
@ eLanguageTypeMipsAssembler
Mips_Assembler.
@ eLanguageTypeC_plus_plus_03
ISO C++:2003.
@ eLanguageTypeUnknown
Unknown or invalid language value.
@ eLanguageTypeRust
Rust.
@ eLanguageTypeFortran95
ISO Fortran 95.
@ eLanguageTypeC_sharp
@ eLanguageTypeAda2012
@ eLanguageTypeC_plus_plus_17
ISO C++:2017.
@ eLanguageTypeCrystal
@ eLanguageTypeObjC_plus_plus
Objective-C++.
@ eLanguageTypeC_plus_plus_11
ISO C++:2011.
@ eLanguageTypeSwift
Swift.
@ eLanguageTypeC89
ISO C:1989.
@ eLanguageTypeAda83
ISO Ada:1983.
@ eLanguageTypeJulia
Julia.
@ eLanguageTypeGo
Go.
@ eLanguageTypeFortran77
ISO Fortran 77.
@ eLanguageTypeKotlin
@ eLanguageTypeCobol85
ISO Cobol:1985.
@ eLanguageTypeUPC
Unified Parallel C.
@ eLanguageTypeC
Non-standardized C, such as K&R.
@ eLanguageTypeAda95
ISO Ada:1995.
@ eLanguageTypeCobol74
ISO Cobol:1974.
@ eLanguageTypePython
Python.
@ eLanguageTypeAda2005
@ eLanguageTypeOpenCL
OpenCL.
@ eLanguageTypeAssembly
@ eLanguageTypeD
D.
@ eLanguageTypeFortran90
ISO Fortran 90.
@ eLanguageTypeObjC
Objective-C.
@ eLanguageTypeC_plus_plus
ISO C++:1998.
@ eLanguageTypeLastStandardLanguage
@ eLanguageTypeDylan
Dylan.
@ eLanguageTypeFortran03
ISO Fortran 2003.
@ eSymbolSharedCacheUseHostSharedCache
@ eSymbolSharedCacheUseInferiorSharedCacheOnly
@ eSymbolSharedCacheUseHostLLDBMemory
@ eSymbolSharedCacheUseHostAndInferiorSharedCache
@ eNameMatchStyleSelector
@ eNameMatchStyleMethod
FLAGS_ENUM(LaunchFlags)
Launch Flags.
PathType
Used with SBHostOS::GetLLDBPath (lldb::PathType) to find files that are related to LLDB on the curren...
@ ePathTypeGlobalLLDBTempSystemDir
The LLDB temp directory for this system, NOT cleaned up on a process exit.
@ ePathTypeHeaderDir
Find LLDB header file directory.
@ ePathTypeLLDBSystemPlugins
System plug-ins directory.
@ ePathTypeLLDBTempSystemDir
The LLDB temp directory for this system that will be cleaned up on exit.
@ ePathTypeClangDir
Find path to Clang builtin headers.
@ ePathTypeLLDBUserPlugins
User plug-ins directory.
@ ePathTypeSupportExecutableDir
Find LLDB support executable directory (debugserver, etc)
@ ePathTypePythonDir
Find Python modules (PYTHONPATH) directory.
@ ePathTypeLLDBShlibDir
The directory where the lldb.so (unix) or LLDB mach-o file in LLDB.framework (MacOSX) exists.
@ eErrorTypeGeneric
Generic errors that can be any value.
@ eErrorTypeWin32
Standard Win32 error codes.
@ eErrorTypeExpression
These are from the ExpressionResults enum.
@ eErrorTypeMachKernel
Mach kernel error codes.
@ eErrorTypePOSIX
POSIX error codes.
FormatterMatchType
Type of match to be performed when looking for a formatter for a data type.
@ eLastFormatterMatchType
@ eFormatterMatchCallback
ExpressionResults
The results of expression evaluation.
@ eExpressionTimedOut
@ eExpressionCompleted
@ eExpressionHitBreakpoint
@ eExpressionInterrupted
@ eExpressionDiscarded
@ eExpressionParseError
@ eExpressionStoppedForDebug
@ eExpressionResultUnavailable
@ eExpressionThreadVanished
@ eExpressionSetupError
@ eTemplateArgumentKindTemplate
@ eTemplateArgumentKindTemplateExpansion
@ eTemplateArgumentKindNull
@ eTemplateArgumentKindNullPtr
@ eTemplateArgumentKindDeclaration
@ eTemplateArgumentKindIntegral
@ eTemplateArgumentKindPack
@ eTemplateArgumentKindType
@ eTemplateArgumentKindStructuralValue
@ eTemplateArgumentKindExpression
SymbolType
Symbol types.
@ eSymbolTypeUndefined
@ eSymbolTypeVariableType
@ eSymbolTypeObjCMetaClass
@ eSymbolTypeReExported
@ eSymbolTypeObjCClass
@ eSymbolTypeObjectFile
@ eSymbolTypeTrampoline
@ eSymbolTypeResolver
@ eSymbolTypeSourceFile
@ eSymbolTypeException
@ eSymbolTypeVariable
@ eSymbolTypeAbsolute
@ eSymbolTypeAdditional
When symbols take more than one entry, the extra entries get this type.
@ eSymbolTypeInstrumentation
@ eSymbolTypeHeaderFile
@ eSymbolTypeCommonBlock
@ eSymbolTypeCompiler
@ eSymbolTypeLineHeader
@ eSymbolTypeObjCIVar
@ eSymbolTypeLineEntry
@ eSymbolTypeScopeBegin
@ eSymbolTypeScopeEnd
Encoding
Register encoding definitions.
@ eEncodingIEEE754
float
@ eEncodingVector
vector registers
@ eEncodingUint
unsigned integer
@ eEncodingSint
signed integer
InstrumentationRuntimeType
@ eInstrumentationRuntimeTypeThreadSanitizer
@ eInstrumentationRuntimeTypeBoundsSafety
@ eInstrumentationRuntimeTypeMainThreadChecker
@ eInstrumentationRuntimeTypeLibsanitizersAsan
@ eInstrumentationRuntimeTypeAddressSanitizer
@ eNumInstrumentationRuntimeTypes
@ eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer
@ eInstrumentationRuntimeTypeSwiftRuntimeReporting
StopDisassemblyType
Used to determine when to show disassembly.
@ eStopDisassemblyTypeNever
@ eStopDisassemblyTypeNoSource
@ eStopDisassemblyTypeAlways
@ eStopDisassemblyTypeNoDebugInfo
@ eStopShowColumnAnsi
@ eStopShowColumnCaret
@ eStopShowColumnNone
@ eStopShowColumnAnsiOrCaret
ReturnStatus
Command Return Status Types.
@ eReturnStatusStarted
@ eReturnStatusSuccessContinuingResult
@ eReturnStatusFailed
@ eReturnStatusSuccessContinuingNoResult
@ eReturnStatusSuccessFinishResult
@ eReturnStatusInvalid
@ eReturnStatusSuccessFinishNoResult
QueueKind
Queue type.
@ eArgTypeSEDStylePair
@ eArgTypeExpressionPath
@ eArgTypeBreakpointIDRange
@ eArgTypePythonFunction
@ eArgTypePermissionsNumber
@ eArgTypeNumberPerLine
@ eArgTypePermissionsString
@ eArgTypeLogCategory
@ eArgTypeDescriptionVerbosity
@ eArgTypeOldPathPrefix
@ eArgTypePluginDomain
@ eArgTypeArchitecture
@ eArgTypeProcessName
@ eArgTypeFrameProviderIDRange
@ eArgTypeBreakpointID
@ eArgTypeThreadIndex
@ eArgTypeNewPathPrefix
@ eArgTypeStartAddress
@ eArgTypeNameMatchStyle
@ eArgTypeSettingPrefix
@ eArgTypePythonClass
@ eArgTypeFileLineColumn
@ eArgTypeCommandName
@ eArgTypeSummaryString
@ eArgTypePythonScript
@ eArgTypeScriptedExtension
@ eArgTypeRecognizerID
@ eArgTypeBreakpointResolverMask
@ eArgTypeManagedPlugin
@ eArgTypeWatchpointID
@ eArgTypeCPUFeatures
@ eArgTypeFunctionOrSymbol
@ eArgTypeRemoteFilename
@ eArgTypeExceptionStage
@ eArgTypeSettingIndex
@ eArgTypeSettingVariableName
@ eArgTypeDisassemblyFlavor
@ eArgTypeRegisterName
@ eArgTypeBreakpointName
@ eArgTypeScriptedCommandSynchronicity
@ eArgTypeCompletionType
@ eArgTypeWatchpointIDRange
@ eArgTypeSaveCoreStyle
@ eArgTypeRegularExpression
@ eArgTypeUnsignedInteger
@ eArgTypeFunctionName
@ eArgTypeAliasOptions
@ eArgTypeDirectoryName
@ eArgTypeAddressOrExpression
ByteOrder
Byte ordering definitions.
MemberFunctionKind
Kind of member function.
@ eMemberFunctionKindInstanceMethod
A function that applies to a specific instance.
@ eMemberFunctionKindConstructor
A function used to create instances.
@ eMemberFunctionKindUnknown
Not sure what the type of this is.
@ eMemberFunctionKindDestructor
A function used to tear down existing instances.
@ eMemberFunctionKindStaticMethod
A function that applies to a type rather than any instance.
InstructionControlFlowKind
Architecture-agnostic categorization of instructions for traversing the control flow of a trace.
@ eInstructionControlFlowKindReturn
The instruction is a near (function) return.
@ eInstructionControlFlowKindFarJump
The instruction is a jump-like far transfer. E.g. FAR JMP.
@ eInstructionControlFlowKindOther
The instruction is something not listed below, i.e.
@ eInstructionControlFlowKindFarCall
The instruction is a call-like far transfer.
@ eInstructionControlFlowKindFarReturn
The instruction is a return-like far transfer.
@ eInstructionControlFlowKindUnknown
The instruction could not be classified.
@ eInstructionControlFlowKindJump
The instruction is a near unconditional jump.
@ eInstructionControlFlowKindCall
The instruction is a near (function) call.
@ eInstructionControlFlowKindCondJump
The instruction is a near conditional jump.
TraceCursorSeekType
Enum to indicate the reference point when invoking TraceCursor::Seek().
@ eTraceCursorSeekTypeCurrent
The current position in the trace.
@ eTraceCursorSeekTypeEnd
The end of the trace, i.e the most recent item.
@ eTraceCursorSeekTypeBeginning
The beginning of the trace, i.e the oldest item.
@ eSearchDepthInvalid
@ eSearchDepthAddress
@ eSearchDepthFunction
@ kLastSearchDepthKind
@ eSearchDepthCompUnit
@ eValueTypeVTableEntry
function pointer in virtual function table
@ eValueTypeSyntheticFlag
A flag that indicates if the value type is synthetic or not.
@ eValueTypeVTable
virtual function table
@ eValueTypeVariableGlobal
globals variable
@ eValueTypeConstResult
constant result variables
@ kValueTypeFlagsMask
@ eValueTypeVariableLocal
function local variables
@ eValueTypeVariableArgument
function argument variables
@ eValueTypeRegister
stack frame register value
@ eValueTypeVariableStatic
static variable
@ eValueTypeRegisterSet
A collection of stack frame register values.
@ eValueTypeVariableThreadLocal
thread local storage variable
@ eGdbSignalBadInstruction
@ eTraceItemKindInstruction
StopReason
Thread stop reasons.
@ eStopReasonInstrumentation
@ eStopReasonPlanComplete
@ eStopReasonHistoryBoundary
@ eStopReasonBreakpoint
@ eStopReasonExec
Program was re-exec'ed.
@ eStopReasonVForkDone
@ eStopReasonInterrupt
Thread requested interrupt.
@ eStopReasonProcessorTrace
@ eStopReasonThreadExiting
@ eStopReasonException
@ eStopReasonWatchpoint
BinaryInformationLevel
When the Process plugin can retrieve information about all binaries loaded in the target process,...
@ eBinaryInformationLevelAddrName
@ eBinaryInformationLevelAddrNameUUID
@ eBinaryInformationLevelFull
@ eBinaryInformationLevelAddrOnly
AddressMaskType
Used in the SBProcess AddressMask/FixAddress methods.
@ eDynamicDontRunTarget
@ eDynamicCanRunTarget
@ eStructuredDataTypeFloat
@ eStructuredDataTypeDictionary
@ eStructuredDataTypeInvalid
@ eStructuredDataTypeInteger
@ eStructuredDataTypeGeneric
@ eStructuredDataTypeArray
@ eStructuredDataTypeSignedInteger
@ eStructuredDataTypeUnsignedInteger
@ eStructuredDataTypeNull
@ eStructuredDataTypeBoolean
@ eStructuredDataTypeString
@ eSectionTypeDWARFDebugStrOffsets
@ eSectionTypeELFDynamicSymbols
Elf SHT_DYNSYM section.
@ eSectionTypeInvalid
@ eSectionTypeDWARFDebugPubNames
@ eSectionTypeDataObjCCFStrings
Objective-C const CFString/NSString objects.
@ eSectionTypeZeroFill
@ eSectionTypeDWARFDebugLocDwo
@ eSectionTypeDWARFDebugFrame
@ eSectionTypeARMextab
@ eSectionTypeContainer
The section contains child sections.
@ eSectionTypeDWARFDebugLocLists
DWARF v5 .debug_loclists.
@ eSectionTypeDWARFDebugTypes
DWARF .debug_types section.
@ eSectionTypeDataSymbolAddress
Address of a symbol in the symbol table.
@ eSectionTypeELFDynamicLinkInfo
Elf SHT_DYNAMIC section.
@ eSectionTypeDWARFDebugMacInfo
@ eSectionTypeAbsoluteAddress
Dummy section for symbols with absolute address.
@ eSectionTypeCompactUnwind
compact unwind section in Mach-O, __TEXT,__unwind_info
@ eSectionTypeELFRelocationEntries
Elf SHT_REL or SHT_REL section.
@ eSectionTypeDWARFAppleNamespaces
@ eSectionTypeLLDBFormatters
@ eSectionTypeDWARFDebugNames
DWARF v5 .debug_names.
@ eSectionTypeDWARFDebugRngLists
DWARF v5 .debug_rnglists.
@ eSectionTypeEHFrame
@ eSectionTypeDWARFDebugStrOffsetsDwo
@ eSectionTypeDWARFDebugMacro
@ eSectionTypeDWARFAppleTypes
@ 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.