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 eStateUnloaded, ///< Process is object is valid, but not currently loaded
77 eStateConnected, ///< Process is connected to remote debug services, but not
78 /// launched or attached to anything yet
79 eStateAttaching, ///< Process is currently trying to attach
80 eStateLaunching, ///< Process is in the process of launching
81 // The state changes eStateAttaching and eStateLaunching are both sent while
82 // the private state thread is either not yet started or paused. For that
83 // reason, they should only be signaled as public state changes, and not
84 // private state changes.
85 eStateStopped, ///< Process or thread is stopped and can be examined.
86 eStateRunning, ///< Process or thread is running and can't be examined.
87 eStateStepping, ///< Process or thread is in the process of stepping and can
88 /// not be examined.
89 eStateCrashed, ///< Process or thread has crashed and can be examined.
90 eStateDetached, ///< Process has been detached and can't be examined.
91 eStateExited, ///< Process has exited and can't be examined.
92 eStateSuspended, ///< Process or thread is in a suspended state as far
93 ///< as the debugger is concerned while other processes
94 ///< or threads get the chance to run.
96};
97
98/// Launch Flags.
99FLAGS_ENUM(LaunchFlags){
100 eLaunchFlagNone = 0u,
101 eLaunchFlagExec = (1u << 0), ///< Exec when launching and turn the calling
102 /// process into a new process
103 eLaunchFlagDebug = (1u << 1), ///< Stop as soon as the process launches to
104 /// allow the process to be debugged
105 eLaunchFlagStopAtEntry = (1u
106 << 2), ///< Stop at the program entry point
107 /// instead of auto-continuing when
108 /// launching or attaching at entry point
109 eLaunchFlagDisableASLR =
110 (1u << 3), ///< Disable Address Space Layout Randomization
111 eLaunchFlagDisableSTDIO =
112 (1u << 4), ///< Disable stdio for inferior process (e.g. for a GUI app)
113 eLaunchFlagLaunchInTTY =
114 (1u << 5), ///< Launch the process in a new TTY if supported by the host
115 eLaunchFlagLaunchInShell =
116 (1u << 6), ///< Launch the process inside a shell to get shell expansion
117 eLaunchFlagLaunchInSeparateProcessGroup =
118 (1u << 7), ///< Launch the process in a separate process group
119 ///< If you are going to hand the process off (e.g. to
120 ///< debugserver)
121 eLaunchFlagDontSetExitStatus = (1u << 8),
122 ///< set this flag so lldb & the handee don't race to set its exit status.
123 eLaunchFlagDetachOnError = (1u << 9), ///< If set, then the client stub
124 ///< should detach rather than killing
125 ///< the debugee
126 ///< if it loses connection with lldb.
127 eLaunchFlagShellExpandArguments =
128 (1u << 10), ///< Perform shell-style argument expansion
129 eLaunchFlagCloseTTYOnExit = (1u << 11), ///< Close the open TTY on exit
130 eLaunchFlagInheritTCCFromParent =
131 (1u << 12), ///< Don't make the inferior responsible for its own TCC
132 ///< permissions but instead inherit them from its parent.
133};
134
135/// Thread Run Modes.
137
138/// Byte ordering definitions.
145
146/// Register encoding definitions.
149 eEncodingUint, ///< unsigned integer
150 eEncodingSint, ///< signed integer
152 eEncodingVector ///< vector registers
154
155/// Display format definitions.
156enum Format {
164 eFormatCharPrintable, ///< Only printable characters, '.' if not printable
165 eFormatComplex, ///< Floating point complex type
167 eFormatCString, ///< NULL terminated C strings
174 eFormatOSType, ///< OS character codes encoded into an integer 'PICT' 'text'
175 ///< etc...
193 eFormatComplexInteger, ///< Integer complex type
194 eFormatCharArray, ///< Print characters with no single quotes, used for
195 ///< character arrays that can contain non printable
196 ///< characters
197 eFormatAddressInfo, ///< Describe what an address points to (func + offset
198 ///< with file/line, symbol + offset, data, etc)
199 eFormatHexFloat, ///< ISO C99 hex float string
200 eFormatInstruction, ///< Disassemble an opcode
201 eFormatVoid, ///< Do not print this
205
206/// Description levels for "void GetDescription(Stream *, DescriptionLevel)"
207/// calls.
215
216/// Script interpreter types.
224
225/// Register numbering types.
226// See RegisterContext::ConvertRegisterKindToRegisterNumber to convert any of
227// these to the lldb internal register numbering scheme (eRegisterKindLLDB).
229 eRegisterKindEHFrame = 0, ///< the register numbers seen in eh_frame
230 eRegisterKindDWARF, ///< the register numbers seen DWARF
231 eRegisterKindGeneric, ///< insn ptr reg, stack ptr reg, etc not specific to
232 ///< any particular target
233 eRegisterKindProcessPlugin, ///< num used by the process plugin - e.g. by the
234 ///< remote gdb-protocol stub program
235 eRegisterKindLLDB, ///< lldb's internal register numbers
238
239/// Thread stop reasons.
248 eStopReasonExec, ///< Program was re-exec'ed
256};
257
258/// Command Return Status Types.
269
270/// The results of expression evaluation.
283
294
295/// Connection Status Types.
298 eConnectionStatusEndOfFile, ///< End-of-file encountered
299 eConnectionStatusError, ///< Check GetError() for details
300 eConnectionStatusTimedOut, ///< Request timed out
302 eConnectionStatusLostConnection, ///< Lost connection while connected to a
303 ///< valid connection
304 eConnectionStatusInterrupted ///< Interrupted read
306
309 eErrorTypeGeneric, ///< Generic errors that can be any value.
310 eErrorTypeMachKernel, ///< Mach kernel error codes.
311 eErrorTypePOSIX, ///< POSIX error codes.
312 eErrorTypeExpression, ///< These are from the ExpressionResults enum.
313 eErrorTypeWin32 ///< Standard Win32 error codes.
315
318 eValueTypeVariableGlobal = 1, ///< globals variable
319 eValueTypeVariableStatic = 2, ///< static variable
320 eValueTypeVariableArgument = 3, ///< function argument variables
321 eValueTypeVariableLocal = 4, ///< function local variables
322 eValueTypeRegister = 5, ///< stack frame register value
323 eValueTypeRegisterSet = 6, ///< A collection of stack frame register values
324 eValueTypeConstResult = 7, ///< constant result variables
325 eValueTypeVariableThreadLocal = 8 ///< thread local storage variable
327
328/// Token size/granularities for Input Readers.
329
337
338/// These mask bits allow a common interface for queries that can
339/// limit the amount of information that gets parsed to only the
340/// information that is requested. These bits also can indicate what
341/// actually did get resolved during query function calls.
342///
343/// Each definition corresponds to a one of the member variables
344/// in this class, and requests that that item be resolved, or
345/// indicates that the member did get resolved.
346FLAGS_ENUM(SymbolContextItem){
347 /// Set when \a target is requested from a query, or was located
348 /// in query results
349 eSymbolContextTarget = (1u << 0),
350 /// Set when \a module is requested from a query, or was located
351 /// in query results
352 eSymbolContextModule = (1u << 1),
353 /// Set when \a comp_unit is requested from a query, or was
354 /// located in query results
355 eSymbolContextCompUnit = (1u << 2),
356 /// Set when \a function is requested from a query, or was located
357 /// in query results
358 eSymbolContextFunction = (1u << 3),
359 /// Set when the deepest \a block is requested from a query, or
360 /// was located in query results
361 eSymbolContextBlock = (1u << 4),
362 /// Set when \a line_entry is requested from a query, or was
363 /// located in query results
364 eSymbolContextLineEntry = (1u << 5),
365 /// Set when \a symbol is requested from a query, or was located
366 /// in query results
367 eSymbolContextSymbol = (1u << 6),
368 /// Indicates to try and lookup everything up during a routine
369 /// symbol context query.
370 eSymbolContextEverything = ((eSymbolContextSymbol << 1) - 1u),
371 /// Set when \a global or static variable is requested from a
372 /// query, or was located in query results.
373 /// eSymbolContextVariable is potentially expensive to lookup so
374 /// it isn't included in eSymbolContextEverything which stops it
375 /// from being used during frame PC lookups and many other
376 /// potential address to symbol context lookups.
377 eSymbolContextVariable = (1u << 7),
378
379 // Keep this last and up-to-date for what the last enum value is.
380 eSymbolContextLastItem = eSymbolContextVariable,
381};
382LLDB_MARK_AS_BITMASK_ENUM(SymbolContextItem)
383
384FLAGS_ENUM(Permissions){ePermissionsWritable = (1u << 0),
385 ePermissionsReadable = (1u << 1),
386 ePermissionsExecutable = (1u << 2)};
387LLDB_MARK_AS_BITMASK_ENUM(Permissions)
388
390 eInputReaderActivate, ///< reader is newly pushed onto the reader stack
391 eInputReaderAsynchronousOutputWritten, ///< an async output event occurred;
392 ///< the reader may want to do
393 ///< something
394 eInputReaderReactivate, ///< reader is on top of the stack again after another
395 ///< reader was popped off
396 eInputReaderDeactivate, ///< another reader was pushed on the stack
397 eInputReaderGotToken, ///< reader got one of its tokens (granularity)
398 eInputReaderInterrupt, ///< reader received an interrupt signal (probably from
399 ///< a control-c)
400 eInputReaderEndOfFile, ///< reader received an EOF char (probably from a
401 ///< control-d)
402 eInputReaderDone ///< reader was just popped off the stack and is done
404
405FLAGS_ENUM(BreakpointEventType){
406 eBreakpointEventTypeInvalidType = (1u << 0),
407 eBreakpointEventTypeAdded = (1u << 1),
408 eBreakpointEventTypeRemoved = (1u << 2),
409 eBreakpointEventTypeLocationsAdded = (1u << 3), ///< Locations added doesn't
410 ///< get sent when the
411 ///< breakpoint is created
412 eBreakpointEventTypeLocationsRemoved = (1u << 4),
413 eBreakpointEventTypeLocationsResolved = (1u << 5),
414 eBreakpointEventTypeEnabled = (1u << 6),
415 eBreakpointEventTypeDisabled = (1u << 7),
416 eBreakpointEventTypeCommandChanged = (1u << 8),
417 eBreakpointEventTypeConditionChanged = (1u << 9),
418 eBreakpointEventTypeIgnoreChanged = (1u << 10),
419 eBreakpointEventTypeThreadChanged = (1u << 11),
420 eBreakpointEventTypeAutoContinueChanged = (1u << 12)};
421
422FLAGS_ENUM(WatchpointEventType){
423 eWatchpointEventTypeInvalidType = (1u << 0),
424 eWatchpointEventTypeAdded = (1u << 1),
425 eWatchpointEventTypeRemoved = (1u << 2),
426 eWatchpointEventTypeEnabled = (1u << 6),
427 eWatchpointEventTypeDisabled = (1u << 7),
428 eWatchpointEventTypeCommandChanged = (1u << 8),
429 eWatchpointEventTypeConditionChanged = (1u << 9),
430 eWatchpointEventTypeIgnoreChanged = (1u << 10),
431 eWatchpointEventTypeThreadChanged = (1u << 11),
432 eWatchpointEventTypeTypeChanged = (1u << 12)};
433
434/// Programming language type.
435///
436/// These enumerations use the same language enumerations as the DWARF
437/// specification for ease of use and consistency.
438/// The enum -> string code is in Language.cpp, don't change this
439/// table without updating that code as well.
440///
441/// This datatype is used in SBExpressionOptions::SetLanguage() which
442/// makes this type API. Do not change its underlying storage type!
444 eLanguageTypeUnknown = 0x0000, ///< Unknown or invalid language value.
445 eLanguageTypeC89 = 0x0001, ///< ISO C:1989.
446 eLanguageTypeC = 0x0002, ///< Non-standardized C, such as K&R.
447 eLanguageTypeAda83 = 0x0003, ///< ISO Ada:1983.
448 eLanguageTypeC_plus_plus = 0x0004, ///< ISO C++:1998.
449 eLanguageTypeCobol74 = 0x0005, ///< ISO Cobol:1974.
450 eLanguageTypeCobol85 = 0x0006, ///< ISO Cobol:1985.
451 eLanguageTypeFortran77 = 0x0007, ///< ISO Fortran 77.
452 eLanguageTypeFortran90 = 0x0008, ///< ISO Fortran 90.
453 eLanguageTypePascal83 = 0x0009, ///< ISO Pascal:1983.
454 eLanguageTypeModula2 = 0x000a, ///< ISO Modula-2:1996.
455 eLanguageTypeJava = 0x000b, ///< Java.
456 eLanguageTypeC99 = 0x000c, ///< ISO C:1999.
457 eLanguageTypeAda95 = 0x000d, ///< ISO Ada:1995.
458 eLanguageTypeFortran95 = 0x000e, ///< ISO Fortran 95.
459 eLanguageTypePLI = 0x000f, ///< ANSI PL/I:1976.
460 eLanguageTypeObjC = 0x0010, ///< Objective-C.
461 eLanguageTypeObjC_plus_plus = 0x0011, ///< Objective-C++.
462 eLanguageTypeUPC = 0x0012, ///< Unified Parallel C.
463 eLanguageTypeD = 0x0013, ///< D.
464 eLanguageTypePython = 0x0014, ///< Python.
465 // NOTE: The below are DWARF5 constants, subject to change upon
466 // completion of the DWARF5 specification
467 eLanguageTypeOpenCL = 0x0015, ///< OpenCL.
468 eLanguageTypeGo = 0x0016, ///< Go.
469 eLanguageTypeModula3 = 0x0017, ///< Modula 3.
470 eLanguageTypeHaskell = 0x0018, ///< Haskell.
471 eLanguageTypeC_plus_plus_03 = 0x0019, ///< ISO C++:2003.
472 eLanguageTypeC_plus_plus_11 = 0x001a, ///< ISO C++:2011.
473 eLanguageTypeOCaml = 0x001b, ///< OCaml.
474 eLanguageTypeRust = 0x001c, ///< Rust.
475 eLanguageTypeC11 = 0x001d, ///< ISO C:2011.
476 eLanguageTypeSwift = 0x001e, ///< Swift.
477 eLanguageTypeJulia = 0x001f, ///< Julia.
478 eLanguageTypeDylan = 0x0020, ///< Dylan.
479 eLanguageTypeC_plus_plus_14 = 0x0021, ///< ISO C++:2014.
480 eLanguageTypeFortran03 = 0x0022, ///< ISO Fortran 2003.
481 eLanguageTypeFortran08 = 0x0023, ///< ISO Fortran 2008.
487 eLanguageTypeC_plus_plus_17 = 0x002a, ///< ISO C++:2017.
488 eLanguageTypeC_plus_plus_20 = 0x002b, ///< ISO C++:2020.
497
498 // Vendor Extensions
499 // Note: Language::GetNameForLanguageType
500 // assumes these can be used as indexes into array language_names, and
501 // Language::SetLanguageFromCString and Language::AsCString assume these can
502 // be used as indexes into array g_languages.
503 eLanguageTypeMipsAssembler, ///< Mips_Assembler.
504 // Mojo will move to the common list of languages once the DWARF committee
505 // creates a language code for it.
508
517
523
530
538
636 eArgTypeLastArg // Always keep this entry as the last entry in this
637 // enumeration!!
639
640/// Symbol types.
641// Symbol holds the SymbolType in a 6-bit field (m_type), so if you get over 63
642// entries you will have to resize that field.
666 eSymbolTypeAdditional, ///< When symbols take more than one entry, the extra
667 ///< entries get this type
676
680 eSectionTypeContainer, ///< The section contains child sections
682 eSectionTypeDataCString, ///< Inlined C string data
683 eSectionTypeDataCStringPointers, ///< Pointers to C string data
684 eSectionTypeDataSymbolAddress, ///< Address of a symbol in the symbol table
691 eSectionTypeDataObjCMessageRefs, ///< Pointer to function pointer + selector
692 eSectionTypeDataObjCCFStrings, ///< Objective-C const CFString/NSString
693 ///< objects
713 eSectionTypeELFSymbolTable, ///< Elf SHT_SYMTAB section
714 eSectionTypeELFDynamicSymbols, ///< Elf SHT_DYNSYM section
715 eSectionTypeELFRelocationEntries, ///< Elf SHT_REL or SHT_REL section
716 eSectionTypeELFDynamicLinkInfo, ///< Elf SHT_DYNAMIC section
720 eSectionTypeCompactUnwind, ///< compact unwind section in Mach-O,
721 ///< __TEXT,__unwind_info
723 eSectionTypeAbsoluteAddress, ///< Dummy section for symbols with absolute
724 ///< address
726 eSectionTypeDWARFDebugTypes, ///< DWARF .debug_types section
727 eSectionTypeDWARFDebugNames, ///< DWARF v5 .debug_names
729 eSectionTypeDWARFDebugLineStr, ///< DWARF v5 .debug_line_str
730 eSectionTypeDWARFDebugRngLists, ///< DWARF v5 .debug_rnglists
731 eSectionTypeDWARFDebugLocLists, ///< DWARF v5 .debug_loclists
743};
744
745FLAGS_ENUM(EmulateInstructionOptions){
746 eEmulateInstructionOptionNone = (0u),
747 eEmulateInstructionOptionAutoAdvancePC = (1u << 0),
748 eEmulateInstructionOptionIgnoreConditions = (1u << 1)};
749
750FLAGS_ENUM(FunctionNameType){
751 eFunctionNameTypeNone = 0u,
752 eFunctionNameTypeAuto =
753 (1u << 1), ///< Automatically figure out which FunctionNameType
754 ///< bits to set based on the function name.
755 eFunctionNameTypeFull = (1u << 2), ///< The function name.
756 ///< For C this is the same as just the name of the function For C++ this is
757 ///< the mangled or demangled version of the mangled name. For ObjC this is
758 ///< the full function signature with the + or - and the square brackets and
759 ///< the class and selector
760 eFunctionNameTypeBase = (1u
761 << 3), ///< The function name only, no namespaces
762 ///< or arguments and no class
763 ///< methods or selectors will be searched.
764 eFunctionNameTypeMethod = (1u << 4), ///< Find function by method name (C++)
765 ///< with no namespace or arguments
766 eFunctionNameTypeSelector =
767 (1u << 5), ///< Find function by selector name (ObjC) names
768 eFunctionNameTypeAny =
769 eFunctionNameTypeAuto ///< DEPRECATED: use eFunctionNameTypeAuto
770};
771LLDB_MARK_AS_BITMASK_ENUM(FunctionNameType)
772
773/// Basic types enumeration for the public API SBType::GetBasicType().
810
811/// Deprecated
814
815 /// Intel Processor Trace
818
831};
832
833FLAGS_ENUM(TypeClass){
834 eTypeClassInvalid = (0u), eTypeClassArray = (1u << 0),
835 eTypeClassBlockPointer = (1u << 1), eTypeClassBuiltin = (1u << 2),
836 eTypeClassClass = (1u << 3), eTypeClassComplexFloat = (1u << 4),
837 eTypeClassComplexInteger = (1u << 5), eTypeClassEnumeration = (1u << 6),
838 eTypeClassFunction = (1u << 7), eTypeClassMemberPointer = (1u << 8),
839 eTypeClassObjCObject = (1u << 9), eTypeClassObjCInterface = (1u << 10),
840 eTypeClassObjCObjectPointer = (1u << 11), eTypeClassPointer = (1u << 12),
841 eTypeClassReference = (1u << 13), eTypeClassStruct = (1u << 14),
842 eTypeClassTypedef = (1u << 15), eTypeClassUnion = (1u << 16),
843 eTypeClassVector = (1u << 17),
844 // Define the last type class as the MSBit of a 32 bit value
845 eTypeClassOther = (1u << 31),
846 // Define a mask that can be used for any type when finding types
847 eTypeClassAny = (0xffffffffu)};
849
860};
861
862/// Type of match to be performed when looking for a formatter for a data type.
863/// Used by classes like SBTypeNameSpecifier or lldb_private::TypeMatcher.
868
870};
871
872/// Options that can be set for a formatter to alter its behavior. Not
873/// all of these are applicable to all formatter types.
874FLAGS_ENUM(TypeOptions){eTypeOptionNone = (0u),
875 eTypeOptionCascade = (1u << 0),
876 eTypeOptionSkipPointers = (1u << 1),
877 eTypeOptionSkipReferences = (1u << 2),
878 eTypeOptionHideChildren = (1u << 3),
879 eTypeOptionHideValue = (1u << 4),
880 eTypeOptionShowOneLiner = (1u << 5),
881 eTypeOptionHideNames = (1u << 6),
882 eTypeOptionNonCacheable = (1u << 7),
883 eTypeOptionHideEmptyAggregates = (1u << 8),
884 eTypeOptionFrontEndWantsDereference = (1u << 9)};
885
886/// This is the return value for frame comparisons. If you are comparing frame
887/// A to frame B the following cases arise:
888///
889/// 1) When frame A pushes frame B (or a frame that ends up pushing
890/// B) A is Older than B.
891///
892/// 2) When frame A pushed frame B (or if frameA is on the stack
893/// but B is not) A is Younger than B.
894///
895/// 3) When frame A and frame B have the same StackID, they are
896/// Equal.
897///
898/// 4) When frame A and frame B have the same immediate parent
899/// frame, but are not equal, the comparison yields SameParent.
900///
901/// 5) If the two frames are on different threads or processes the
902/// comparison is Invalid.
903///
904/// 6) If for some reason we can't figure out what went on, we
905/// return Unknown.
914
915/// File Permissions.
916///
917/// Designed to mimic the unix file permission bits so they can be used with
918/// functions that set 'mode_t' to certain values for permissions.
919FLAGS_ENUM(FilePermissions){
920 eFilePermissionsUserRead = (1u << 8),
921 eFilePermissionsUserWrite = (1u << 7),
922 eFilePermissionsUserExecute = (1u << 6),
923 eFilePermissionsGroupRead = (1u << 5),
924 eFilePermissionsGroupWrite = (1u << 4),
925 eFilePermissionsGroupExecute = (1u << 3),
926 eFilePermissionsWorldRead = (1u << 2),
927 eFilePermissionsWorldWrite = (1u << 1),
928 eFilePermissionsWorldExecute = (1u << 0),
929
930 eFilePermissionsUserRW = (eFilePermissionsUserRead |
931 eFilePermissionsUserWrite | 0),
932 eFileFilePermissionsUserRX = (eFilePermissionsUserRead | 0 |
933 eFilePermissionsUserExecute),
934 eFilePermissionsUserRWX = (eFilePermissionsUserRead |
935 eFilePermissionsUserWrite |
936 eFilePermissionsUserExecute),
937
938 eFilePermissionsGroupRW = (eFilePermissionsGroupRead |
939 eFilePermissionsGroupWrite | 0),
940 eFilePermissionsGroupRX = (eFilePermissionsGroupRead | 0 |
941 eFilePermissionsGroupExecute),
942 eFilePermissionsGroupRWX = (eFilePermissionsGroupRead |
943 eFilePermissionsGroupWrite |
944 eFilePermissionsGroupExecute),
945
946 eFilePermissionsWorldRW = (eFilePermissionsWorldRead |
947 eFilePermissionsWorldWrite | 0),
948 eFilePermissionsWorldRX = (eFilePermissionsWorldRead | 0 |
949 eFilePermissionsWorldExecute),
950 eFilePermissionsWorldRWX = (eFilePermissionsWorldRead |
951 eFilePermissionsWorldWrite |
952 eFilePermissionsWorldExecute),
953
954 eFilePermissionsEveryoneR = (eFilePermissionsUserRead |
955 eFilePermissionsGroupRead |
956 eFilePermissionsWorldRead),
957 eFilePermissionsEveryoneW = (eFilePermissionsUserWrite |
958 eFilePermissionsGroupWrite |
959 eFilePermissionsWorldWrite),
960 eFilePermissionsEveryoneX = (eFilePermissionsUserExecute |
961 eFilePermissionsGroupExecute |
962 eFilePermissionsWorldExecute),
963
964 eFilePermissionsEveryoneRW = (eFilePermissionsEveryoneR |
965 eFilePermissionsEveryoneW | 0),
966 eFilePermissionsEveryoneRX = (eFilePermissionsEveryoneR | 0 |
967 eFilePermissionsEveryoneX),
968 eFilePermissionsEveryoneRWX = (eFilePermissionsEveryoneR |
969 eFilePermissionsEveryoneW |
970 eFilePermissionsEveryoneX),
971 eFilePermissionsFileDefault = eFilePermissionsUserRW,
972 eFilePermissionsDirectoryDefault = eFilePermissionsUserRWX,
973};
974
975/// Queue work item types.
976///
977/// The different types of work that can be enqueued on a libdispatch aka Grand
978/// Central Dispatch (GCD) queue.
984
985/// Queue type.
986///
987/// libdispatch aka Grand Central Dispatch (GCD) queues can be either
988/// serial (executing on one thread) or concurrent (executing on
989/// multiple threads).
995
996/// Expression Evaluation Stages.
997///
998/// These are the cancellable stages of expression evaluation, passed
999/// to the expression evaluation callback, so that you can interrupt
1000/// expression evaluation at the various points in its lifecycle.
1007
1008/// Architecture-agnostic categorization of instructions for traversing the
1009/// control flow of a trace.
1010///
1011/// A single instruction can match one or more of these categories.
1013 /// The instruction could not be classified.
1015 /// The instruction is something not listed below, i.e. it's a sequential
1016 /// instruction that doesn't affect the control flow of the program.
1018 /// The instruction is a near (function) call.
1020 /// The instruction is a near (function) return.
1022 /// The instruction is a near unconditional jump.
1024 /// The instruction is a near conditional jump.
1026 /// The instruction is a call-like far transfer.
1027 /// E.g. SYSCALL, SYSENTER, or FAR CALL.
1029 /// The instruction is a return-like far transfer.
1030 /// E.g. SYSRET, SYSEXIT, IRET, or FAR RET.
1032 /// The instruction is a jump-like far transfer.
1033 /// E.g. FAR JMP.
1036
1037/// Watchpoint Kind.
1038///
1039/// Indicates what types of events cause the watchpoint to fire. Used by Native
1040/// *Protocol-related classes.
1041FLAGS_ENUM(WatchpointKind){eWatchpointKindWrite = (1u << 0),
1042 eWatchpointKindRead = (1u << 1)};
1043
1052
1053/// Used with SBHostOS::GetLLDBPath (lldb::PathType) to find files that are
1054/// related to LLDB on the current host machine. Most files are
1055/// relative to LLDB or are in known locations.
1057 ePathTypeLLDBShlibDir, ///< The directory where the lldb.so (unix) or LLDB
1058 ///< mach-o file in LLDB.framework (MacOSX) exists
1059 ePathTypeSupportExecutableDir, ///< Find LLDB support executable directory
1060 ///< (debugserver, etc)
1061 ePathTypeHeaderDir, ///< Find LLDB header file directory
1062 ePathTypePythonDir, ///< Find Python modules (PYTHONPATH) directory
1063 ePathTypeLLDBSystemPlugins, ///< System plug-ins directory
1064 ePathTypeLLDBUserPlugins, ///< User plug-ins directory
1065 ePathTypeLLDBTempSystemDir, ///< The LLDB temp directory for this system that
1066 ///< will be cleaned up on exit
1067 ePathTypeGlobalLLDBTempSystemDir, ///< The LLDB temp directory for this
1068 ///< system, NOT cleaned up on a process
1069 ///< exit.
1070 ePathTypeClangDir ///< Find path to Clang builtin headers
1072
1073/// Kind of member function.
1074///
1075/// Used by the type system.
1077 eMemberFunctionKindUnknown = 0, ///< Not sure what the type of this is
1078 eMemberFunctionKindConstructor, ///< A function used to create instances
1079 eMemberFunctionKindDestructor, ///< A function used to tear down existing
1080 ///< instances
1081 eMemberFunctionKindInstanceMethod, ///< A function that applies to a specific
1082 ///< instance
1083 eMemberFunctionKindStaticMethod ///< A function that applies to a type rather
1084 ///< than any instance
1086
1087/// String matching algorithm used by SBTarget.
1089
1090/// Bitmask that describes details about a type.
1091FLAGS_ENUM(TypeFlags){
1092 eTypeHasChildren = (1u << 0), eTypeHasValue = (1u << 1),
1093 eTypeIsArray = (1u << 2), eTypeIsBlock = (1u << 3),
1094 eTypeIsBuiltIn = (1u << 4), eTypeIsClass = (1u << 5),
1095 eTypeIsCPlusPlus = (1u << 6), eTypeIsEnumeration = (1u << 7),
1096 eTypeIsFuncPrototype = (1u << 8), eTypeIsMember = (1u << 9),
1097 eTypeIsObjC = (1u << 10), eTypeIsPointer = (1u << 11),
1098 eTypeIsReference = (1u << 12), eTypeIsStructUnion = (1u << 13),
1099 eTypeIsTemplate = (1u << 14), eTypeIsTypedef = (1u << 15),
1100 eTypeIsVector = (1u << 16), eTypeIsScalar = (1u << 17),
1101 eTypeIsInteger = (1u << 18), eTypeIsFloat = (1u << 19),
1102 eTypeIsComplex = (1u << 20), eTypeIsSigned = (1u << 21),
1103 eTypeInstanceIsPointer = (1u << 22)};
1104
1105FLAGS_ENUM(CommandFlags){
1106 /// eCommandRequiresTarget
1107 ///
1108 /// Ensures a valid target is contained in m_exe_ctx prior to executing the
1109 /// command. If a target doesn't exist or is invalid, the command will fail
1110 /// and CommandObject::GetInvalidTargetDescription() will be returned as the
1111 /// error. CommandObject subclasses can override the virtual function for
1112 /// GetInvalidTargetDescription() to provide custom strings when needed.
1113 eCommandRequiresTarget = (1u << 0),
1114 /// eCommandRequiresProcess
1115 ///
1116 /// Ensures a valid process is contained in m_exe_ctx prior to executing the
1117 /// command. If a process doesn't exist or is invalid, the command will fail
1118 /// and CommandObject::GetInvalidProcessDescription() will be returned as
1119 /// the error. CommandObject subclasses can override the virtual function
1120 /// for GetInvalidProcessDescription() to provide custom strings when
1121 /// needed.
1122 eCommandRequiresProcess = (1u << 1),
1123 /// eCommandRequiresThread
1124 ///
1125 /// Ensures a valid thread is contained in m_exe_ctx prior to executing the
1126 /// command. If a thread doesn't exist or is invalid, the command will fail
1127 /// and CommandObject::GetInvalidThreadDescription() will be returned as the
1128 /// error. CommandObject subclasses can override the virtual function for
1129 /// GetInvalidThreadDescription() to provide custom strings when needed.
1130 eCommandRequiresThread = (1u << 2),
1131 /// eCommandRequiresFrame
1132 ///
1133 /// Ensures a valid frame is contained in m_exe_ctx prior to executing the
1134 /// command. If a frame doesn't exist or is invalid, the command will fail
1135 /// and CommandObject::GetInvalidFrameDescription() will be returned as the
1136 /// error. CommandObject subclasses can override the virtual function for
1137 /// GetInvalidFrameDescription() to provide custom strings when needed.
1138 eCommandRequiresFrame = (1u << 3),
1139 /// eCommandRequiresRegContext
1140 ///
1141 /// Ensures a valid register context (from the selected frame if there is a
1142 /// frame in m_exe_ctx, or from the selected thread from m_exe_ctx) is
1143 /// available from m_exe_ctx prior to executing the command. If a target
1144 /// doesn't exist or is invalid, the command will fail and
1145 /// CommandObject::GetInvalidRegContextDescription() will be returned as the
1146 /// error. CommandObject subclasses can override the virtual function for
1147 /// GetInvalidRegContextDescription() to provide custom strings when needed.
1148 eCommandRequiresRegContext = (1u << 4),
1149 /// eCommandTryTargetAPILock
1150 ///
1151 /// Attempts to acquire the target lock if a target is selected in the
1152 /// command interpreter. If the command object fails to acquire the API
1153 /// lock, the command will fail with an appropriate error message.
1154 eCommandTryTargetAPILock = (1u << 5),
1155 /// eCommandProcessMustBeLaunched
1156 ///
1157 /// Verifies that there is a launched process in m_exe_ctx, if there isn't,
1158 /// the command will fail with an appropriate error message.
1159 eCommandProcessMustBeLaunched = (1u << 6),
1160 /// eCommandProcessMustBePaused
1161 ///
1162 /// Verifies that there is a paused process in m_exe_ctx, if there isn't,
1163 /// the command will fail with an appropriate error message.
1164 eCommandProcessMustBePaused = (1u << 7),
1165 /// eCommandProcessMustBeTraced
1166 ///
1167 /// Verifies that the process is being traced by a Trace plug-in, if it
1168 /// isn't the command will fail with an appropriate error message.
1169 eCommandProcessMustBeTraced = (1u << 8)};
1170
1171/// Whether a summary should cap how much data it returns to users or not.
1174 eTypeSummaryUncapped = false
1176
1177/// The result from a command interpreter run.
1179 /// Command interpreter finished successfully.
1181 /// Stopped because the corresponding option was set and the inferior
1182 /// crashed.
1184 /// Stopped because the corresponding option was set and a command returned
1185 /// an error.
1187 /// Stopped because quit was requested.
1189};
1190
1191// Style of core file to create when calling SaveCore.
1197};
1198
1199/// Events that might happen during a trace session.
1201 /// Tracing was disabled for some time due to a software trigger.
1203 /// Tracing was disable for some time due to a hardware trigger.
1205 /// Event due to CPU change for a thread. This event is also fired when
1206 /// suddenly it's not possible to identify the cpu of a given thread.
1208 /// Event due to a CPU HW clock tick.
1210 /// The underlying tracing technology emitted a synchronization event used by
1211 /// trace processors.
1213};
1214
1215// Enum used to identify which kind of item a \a TraceCursor is pointing at
1220};
1221
1222/// Enum to indicate the reference point when invoking
1223/// \a TraceCursor::Seek().
1224/// The following values are inspired by \a std::istream::seekg.
1226 /// The beginning of the trace, i.e the oldest item.
1228 /// The current position in the trace.
1230 /// The end of the trace, i.e the most recent item.
1233
1234/// Enum to control the verbosity level of `dwim-print` execution.
1236 /// Run `dwim-print` with no verbosity.
1238 /// Print a message when `dwim-print` uses `expression` evaluation.
1240 /// Always print a message indicating how `dwim-print` is evaluating its
1241 /// expression.
1243};
1244
1247 ///< Watchpoint was created watching a variable
1249 ///< Watchpoint was created watching the result of an expression that was
1250 ///< evaluated at creation time.
1252};
1253
1257 eDiskFileCompletion = (1u << 1),
1259 eSymbolCompletion = (1u << 3),
1261 eSettingsNameCompletion = (1u << 5),
1263 eArchitectureCompletion = (1u << 7),
1265 eRegisterCompletion = (1u << 9),
1267 eProcessPluginCompletion = (1u << 11),
1269 eTypeLanguageCompletion = (1u << 13),
1271 eModuleUUIDCompletion = (1u << 15),
1273 eThreadIndexCompletion = (1u << 17),
1275 eBreakpointNameCompletion = (1u << 19),
1277 eProcessNameCompletion = (1u << 21),
1279 eRemoteDiskDirectoryCompletion = (1u << 23),
1281 // This item serves two purposes. It is the last element in the enum, so
1282 // you can add custom enums starting from here in your Option class. Also
1283 // if you & in this bit the base code will not process the option.
1284 eCustomCompletion = (1u << 25)
1286
1287} // namespace lldb
1288
1289#endif // LLDB_LLDB_ENUMERATIONS_H
#define LLDB_MARK_AS_BITMASK_ENUM(Enum)
#define FLAGS_ENUM(Name)
Definition: SBAddress.h:15
@ 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)
@ eFrameIndexCompletion
@ eDisassemblyFlavorCompletion
@ eVariablePathCompletion
@ eDiskDirectoryCompletion
@ eTypeCategoryNameCompletion
@ ePlatformPluginCompletion
@ eSourceFileCompletion
@ eStopHookIDCompletion
@ eWatchpointIDCompletion
@ eRemoteDiskFileCompletion
@ eBreakpointCompletion
@ eProcessIDCompletion
TypeSummaryCapping
Whether a summary should cap how much data it returns to users or not.
@ eTypeSummaryUncapped
@ eTypeSummaryCapped
ScriptLanguage
Script interpreter types.
@ eScriptLanguageUnknown
@ eScriptLanguageLua
@ eScriptLanguageDefault
@ eScriptLanguageNone
@ eScriptLanguagePython
MatchType
String matching algorithm used by SBTarget.
@ eMatchTypeStartsWith
ExpressionEvaluationPhase
Expression Evaluation Stages.
@ eExpressionEvaluationComplete
@ eExpressionEvaluationParse
@ eExpressionEvaluationExecution
@ eExpressionEvaluationIRGen
TraceType
Deprecated.
@ eTraceTypeProcessorTrace
Intel Processor Trace.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
@ eDescriptionLevelBrief
@ kNumDescriptionLevels
@ eDescriptionLevelInitial
@ eDescriptionLevelFull
@ eDescriptionLevelVerbose
BasicType
Basic types enumeration for the public API SBType::GetBasicType().
@ eBasicTypeUnsignedShort
@ eBasicTypeSignedChar
@ eBasicTypeUnsignedInt128
@ eBasicTypeFloatComplex
@ eBasicTypeNullPtr
@ eBasicTypeObjCSel
@ eBasicTypeUnsignedWChar
@ eBasicTypeInvalid
@ eBasicTypeUnsignedLong
@ eBasicTypeDouble
@ eBasicTypeInt128
@ eBasicTypeLongDoubleComplex
@ eBasicTypeSignedWChar
@ eBasicTypeChar16
@ eBasicTypeUnsignedChar
@ eBasicTypeUnsignedLongLong
@ eBasicTypeDoubleComplex
@ eBasicTypeLongDouble
@ eBasicTypeChar32
@ eBasicTypeObjCID
@ eBasicTypeUnsignedInt
@ eBasicTypeLongLong
@ eBasicTypeObjCClass
@ eSaveCoreStackOnly
@ eSaveCoreDirtyOnly
@ eSaveCoreUnspecified
@ eWatchPointValueKindInvalid
Watchpoint was created watching a variable.
@ eWatchPointValueKindExpression
@ eWatchPointValueKindVariable
Watchpoint was created watching the result of an expression that was evaluated at creation time.
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...
@ eFormatUnicode16
@ eFormatAddressInfo
Describe what an address points to (func + offset.
@ eFormatVectorOfUInt128
@ eFormatVectorOfUInt8
@ eFormatComplexFloat
@ eFormatVectorOfFloat32
@ eFormatVectorOfSInt32
@ eFormatUnicode32
@ eFormatVectorOfSInt8
@ eFormatVectorOfUInt16
@ eFormatHexUppercase
@ eFormatVectorOfFloat64
@ eFormatCharPrintable
Only printable characters, '.' if not printable.
@ eFormatComplexInteger
Integer complex type.
@ eFormatVectorOfSInt16
@ eFormatVectorOfUInt32
FrameComparison
This is the return value for frame comparisons.
@ eFrameCompareInvalid
@ eFrameCompareUnknown
@ eFrameCompareSameParent
@ eFrameCompareEqual
@ eFrameCompareOlder
@ eFrameCompareYounger
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.
@ kLastStateType
@ 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.
@ eLanguageTypeZig
@ eLanguageTypeC_plus_plus_03
ISO C++:2003.
@ eLanguageTypeUnknown
Unknown or invalid language value.
@ eLanguageTypeRust
Rust.
@ eLanguageTypeC17
@ eLanguageTypeFortran95
ISO Fortran 95.
@ eLanguageTypeC_sharp
@ eLanguageTypeMojo
@ eLanguageTypeAda2012
@ eLanguageTypeC_plus_plus_17
ISO C++:2017.
@ eLanguageTypeCrystal
@ eLanguageTypeObjC_plus_plus
Objective-C++.
@ eLanguageTypeC_plus_plus_11
ISO C++:2011.
@ eNumLanguageTypes
@ eLanguageTypeSwift
Swift.
@ eLanguageTypeC89
ISO C:1989.
@ eLanguageTypeAda83
ISO Ada:1983.
@ eLanguageTypeJulia
Julia.
@ eLanguageTypeGo
Go.
@ eLanguageTypeFortran77
ISO Fortran 77.
@ eLanguageTypeBLISS
@ 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.
@ eLanguageTypeHIP
@ eLanguageTypeObjC
Objective-C.
@ eLanguageTypeC_plus_plus
ISO C++:1998.
@ eLanguageTypeDylan
Dylan.
@ eLanguageTypeFortran03
ISO Fortran 2003.
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.
@ eErrorTypeInvalid
@ 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.
@ eAccessProtected
FormatterMatchType
Type of match to be performed when looking for a formatter for a data type.
@ eFormatterMatchExact
@ eFormatterMatchRegex
@ 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
@ eTemplateArgumentKindExpression
SymbolType
Symbol types.
@ eSymbolTypeUndefined
@ eSymbolTypeVariableType
@ eSymbolTypeObjCMetaClass
@ eSymbolTypeReExported
@ eSymbolTypeObjCClass
@ eSymbolTypeObjectFile
@ eSymbolTypeTrampoline
@ eSymbolTypeResolver
@ eSymbolTypeParam
@ eSymbolTypeSourceFile
@ eSymbolTypeException
@ eSymbolTypeInvalid
@ eSymbolTypeVariable
@ eSymbolTypeAbsolute
@ eSymbolTypeAdditional
When symbols take more than one entry, the extra entries get this type.
@ eSymbolTypeInstrumentation
@ eSymbolTypeLocal
@ eSymbolTypeHeaderFile
@ eSymbolTypeBlock
@ eSymbolTypeCommonBlock
@ eSymbolTypeCompiler
@ eSymbolTypeLineHeader
@ eSymbolTypeObjCIVar
@ eSymbolTypeLineEntry
@ eSymbolTypeRuntime
@ eSymbolTypeScopeBegin
@ eSymbolTypeScopeEnd
Encoding
Register encoding definitions.
@ eEncodingIEEE754
float
@ eEncodingVector
vector registers
@ eEncodingUint
unsigned integer
@ eEncodingInvalid
@ eEncodingSint
signed integer
InstrumentationRuntimeType
@ eInstrumentationRuntimeTypeThreadSanitizer
@ eInstrumentationRuntimeTypeMainThreadChecker
@ eInstrumentationRuntimeTypeAddressSanitizer
@ eNumInstrumentationRuntimeTypes
@ eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer
@ eInstrumentationRuntimeTypeSwiftRuntimeReporting
@ eStopShowColumnAnsi
@ eStopShowColumnCaret
@ eStopShowColumnNone
@ eStopShowColumnAnsiOrCaret
ReturnStatus
Command Return Status Types.
@ eReturnStatusStarted
@ eReturnStatusSuccessContinuingResult
@ eReturnStatusFailed
@ eReturnStatusSuccessContinuingNoResult
@ eReturnStatusQuit
@ eReturnStatusSuccessFinishResult
@ eReturnStatusInvalid
@ eReturnStatusSuccessFinishNoResult
QueueKind
Queue type.
@ eQueueKindUnknown
@ eQueueKindConcurrent
@ eQueueKindSerial
@ eArgTypeSEDStylePair
@ eArgTypeExpressionPath
@ eArgTypeBreakpointIDRange
@ eArgTypePythonFunction
@ eArgTypePermissionsNumber
@ eArgTypeOneLiner
@ eArgTypeNumberPerLine
@ eArgTypePermissionsString
@ eArgTypeLogCategory
@ eArgTypeDescriptionVerbosity
@ eArgTypeOldPathPrefix
@ eArgTypeEndAddress
@ eArgTypeTargetID
@ eArgTypeArchitecture
@ eArgTypeProcessName
@ eArgTypeShlibName
@ eArgTypeGDBFormat
@ eArgTypeSettingKey
@ eArgTypeBreakpointID
@ eArgTypeThreadID
@ eArgTypeByteSize
@ eArgTypeThreadIndex
@ eArgTypeSearchWord
@ eArgTypeExprFormat
@ eArgTypeNewPathPrefix
@ eArgTypeFilename
@ eArgTypeExpression
@ eArgTypeStartAddress
@ eArgTypeLogHandler
@ eArgTypeSettingPrefix
@ eArgTypeThreadName
@ eArgTypeColumnNum
@ eArgTypePythonClass
@ eArgTypeFileLineColumn
@ eArgTypeFullName
@ eArgTypeCommandName
@ eArgTypeSummaryString
@ eArgTypeFrameIndex
@ eArgTypePythonScript
@ eArgTypeAliasName
@ eArgTypeRecognizerID
@ eArgTypeWatchpointID
@ eArgTypeLogChannel
@ eArgTypeFunctionOrSymbol
@ eArgTypeSettingIndex
@ eArgTypeConnectURL
@ eArgTypeSettingVariableName
@ eArgTypeSourceFile
@ eArgTypeLanguage
@ eArgTypeDisassemblyFlavor
@ eArgTypeRegisterName
@ eArgTypeNumLines
@ eArgTypeBreakpointName
@ eArgTypeQueueName
@ eArgTypeTypeName
@ eArgTypePlatform
@ eArgTypeScriptedCommandSynchronicity
@ eArgTypeCompletionType
@ eArgTypeHelpText
@ eArgTypeWatchpointIDRange
@ eArgTypeSaveCoreStyle
@ eArgTypeSelector
@ eArgTypeRegularExpression
@ eArgTypeScriptLang
@ eArgTypeUnsignedInteger
@ eArgTypeSortOrder
@ eArgTypeModuleUUID
@ eArgTypeWatchType
@ eArgTypeFunctionName
@ eArgTypeAliasOptions
@ eArgTypeDirectoryName
@ eArgTypeAddressOrExpression
@ eArgTypeUnixSignal
@ eArgTypeClassName
@ eArgTypeStopHookID
ByteOrder
Byte ordering definitions.
@ eByteOrderInvalid
@ eByteOrderLittle
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.
@ 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
@ eSearchDepthTarget
@ eSearchDepthAddress
@ eSearchDepthFunction
@ kLastSearchDepthKind
@ eSearchDepthBlock
@ eSearchDepthModule
@ eSearchDepthCompUnit
@ eGdbSignalBadAccess
@ eGdbSignalBreakpoint
@ eGdbSignalArithmetic
@ eGdbSignalSoftware
@ eGdbSignalEmulation
@ eGdbSignalBadInstruction
@ eTraceItemKindInstruction
@ eTraceItemKindEvent
@ eTraceItemKindError
StopReason
Thread stop reasons.
@ eStopReasonInstrumentation
@ eStopReasonPlanComplete
@ eStopReasonTrace
@ eStopReasonBreakpoint
@ eStopReasonExec
Program was re-exec'ed.
@ eStopReasonVForkDone
@ eStopReasonProcessorTrace
@ eStopReasonThreadExiting
@ eStopReasonException
@ eStopReasonInvalid
@ eStopReasonWatchpoint
@ eStopReasonVFork
@ eStopReasonSignal
@ eDynamicDontRunTarget
@ eDynamicCanRunTarget
@ eNoDynamicValues
@ eStructuredDataTypeFloat
@ eStructuredDataTypeDictionary
@ eStructuredDataTypeInvalid
@ eStructuredDataTypeInteger
@ eStructuredDataTypeGeneric
@ eStructuredDataTypeArray
@ eStructuredDataTypeSignedInteger
@ eStructuredDataTypeUnsignedInteger
@ eStructuredDataTypeNull
@ eStructuredDataTypeBoolean
@ eStructuredDataTypeString
@ eSectionTypeDWARFDebugStrOffsets
@ eSectionTypeELFDynamicSymbols
Elf SHT_DYNSYM section.
@ eSectionTypeData
@ eSectionTypeInvalid
@ eSectionTypeDWARFDebugPubNames
@ eSectionTypeDataObjCCFStrings
Objective-C const CFString/NSString objects.
@ eSectionTypeData16
@ 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
@ eSectionTypeOther
@ eSectionTypeDWARFDebugNames
DWARF v5 .debug_names.
@ eSectionTypeDWARFDebugRngLists
DWARF v5 .debug_rnglists.
@ eSectionTypeEHFrame
@ eSectionTypeDWARFDebugStrOffsetsDwo
@ eSectionTypeDWARFDebugMacro
@ eSectionTypeDWARFAppleTypes
@ eSectionTypeDWARFDebugInfo
@ eSectionTypeDWARFDebugTypesDwo
@ eSectionTypeDWARFDebugRanges
@ eSectionTypeDWARFDebugRngListsDwo
@ eSectionTypeGoSymtab
@ eSectionTypeARMexidx
@ eSectionTypeDWARFDebugLine
@ eSectionTypeDWARFDebugPubTypes
@ eSectionTypeDataObjCMessageRefs
Pointer to function pointer + selector.
@ eSectionTypeDWARFDebugTuIndex
@ eSectionTypeData4
@ eSectionTypeDWARFDebugStr
@ eSectionTypeDWARFDebugLineStr
DWARF v5 .debug_line_str.
@ eSectionTypeDWARFDebugLoc
@ eSectionTypeDWARFAppleNames
@ eSectionTypeDataCStringPointers
Pointers to C string data.
@ eSectionTypeDWARFAppleObjC
@ eSectionTypeCode
@ eSectionTypeData8
@ eSectionTypeSwiftModules
@ eSectionTypeDebug
@ eSectionTypeDWARFDebugCuIndex
@ eSectionTypeDWARFDebugAranges
@ eSectionTypeDWARFDebugAbbrevDwo
@ eSectionTypeDWARFGNUDebugAltLink
@ eSectionTypeDWARFDebugStrDwo
@ eSectionTypeDWARFDebugAbbrev
@ eSectionTypeDataPointers
@ eSectionTypeDWARFDebugLocListsDwo
@ eSectionTypeDWARFDebugInfoDwo
@ eSectionTypeDWARFDebugAddr
@ eSectionTypeDataCString
Inlined C string data.
@ eSectionTypeELFSymbolTable
Elf SHT_SYMTAB section.
RunMode
Thread Run Modes.
@ eOnlyDuringStepping
@ eValueTypeInvalid
@ 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
InputReaderGranularity
Token size/granularities for Input Readers.
@ eInputReaderGranularityInvalid
@ eInputReaderGranularityAll
@ eInputReaderGranularityWord
@ eInputReaderGranularityByte
@ eInputReaderGranularityLine
QueueItemKind
Queue work item types.
@ eQueueItemKindUnknown
@ eQueueItemKindBlock
@ eQueueItemKindFunction
RegisterKind
Register numbering types.
@ eRegisterKindGeneric
insn ptr reg, stack ptr reg, etc not specific to any particular target
@ kNumRegisterKinds
@ 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.