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 eLaunchFlagMemoryTagging =
134 (1u << 13), ///< Launch process with memory tagging explicitly enabled.
135 eLaunchFlagUsePipes =
136 (1u << 14), ///< Use anonymous pipes for stdio instead of a ConPTY on
137 ///< Windows. Useful when terminal emulation is not needed
138 ///< (e.g. lldb-dap internalConsole mode).
139};
140
141/// Thread Run Modes.
143
144/// Execution directions
146
147/// Byte ordering definitions.
154
155/// Register encoding definitions.
158 eEncodingUint, ///< unsigned integer
159 eEncodingSint, ///< signed integer
161 eEncodingVector ///< vector registers
162};
163
164/// Display format definitions.
165enum Format {
173 eFormatCharPrintable, ///< Only printable characters, '.' if not printable
174 eFormatComplex, ///< Floating point complex type
176 eFormatCString, ///< NULL terminated C strings
183 eFormatOSType, ///< OS character codes encoded into an integer 'PICT' 'text'
184 ///< etc...
202 eFormatComplexInteger, ///< Integer complex type
203 eFormatCharArray, ///< Print characters with no single quotes, used for
204 ///< character arrays that can contain non printable
205 ///< characters
206 eFormatAddressInfo, ///< Describe what an address points to (func + offset
207 ///< with file/line, symbol + offset, data, etc)
208 eFormatHexFloat, ///< ISO C99 hex float string
209 eFormatInstruction, ///< Disassemble an opcode
210 eFormatVoid, ///< Do not print this
212 eFormatFloat128, ///< Disambiguate between 128-bit `long double` (which uses
213 ///< `eFormatFloat`) and `__float128` (which uses
214 ///< `eFormatFloat128`). If the value being formatted is not
215 ///< 128 bits, then this is identical to `eFormatFloat`.
217};
218
219/// Description levels for "void GetDescription(Stream *, DescriptionLevel)"
220/// calls.
228
229/// Script interpreter types.
237
238/// Register numbering types.
239// See RegisterContext::ConvertRegisterKindToRegisterNumber to convert any of
240// these to the lldb internal register numbering scheme (eRegisterKindLLDB).
242 eRegisterKindEHFrame = 0, ///< the register numbers seen in eh_frame
243 eRegisterKindDWARF, ///< the register numbers seen DWARF
244 eRegisterKindGeneric, ///< insn ptr reg, stack ptr reg, etc not specific to
245 ///< any particular target
246 eRegisterKindProcessPlugin, ///< num used by the process plugin - e.g. by the
247 ///< remote gdb-protocol stub program
248 eRegisterKindLLDB, ///< lldb's internal register numbers
250};
251
252/// Thread stop reasons.
274
275/// Command Return Status Types.
286
287/// The results of expression evaluation.
300
311
312/// Connection Status Types.
315 eConnectionStatusEndOfFile, ///< End-of-file encountered
316 eConnectionStatusError, ///< Check GetError() for details
317 eConnectionStatusTimedOut, ///< Request timed out
319 eConnectionStatusLostConnection, ///< Lost connection while connected to a
320 ///< valid connection
321 eConnectionStatusInterrupted ///< Interrupted read
322};
323
326 eErrorTypeGeneric, ///< Generic errors that can be any value.
327 eErrorTypeMachKernel, ///< Mach kernel error codes.
328 eErrorTypePOSIX, ///< POSIX error codes.
329 eErrorTypeExpression, ///< These are from the ExpressionResults enum.
330 eErrorTypeWin32 ///< Standard Win32 error codes.
331};
332
333enum ValueType : uint32_t {
335 eValueTypeVariableGlobal = 1, ///< globals variable
336 eValueTypeVariableStatic = 2, ///< static variable
337 eValueTypeVariableArgument = 3, ///< function argument variables
338 eValueTypeVariableLocal = 4, ///< function local variables
339 eValueTypeRegister = 5, ///< stack frame register value
340 eValueTypeRegisterSet = 6, ///< A collection of stack frame register values
341 eValueTypeConstResult = 7, ///< constant result variables
342 eValueTypeVariableThreadLocal = 8, ///< thread local storage variable
343 eValueTypeVTable = 9, ///< virtual function table
344 eValueTypeVTableEntry = 10, ///< function pointer in virtual function table
345};
346
347/// A mask that we can use to check if the value type is synthetic or not.
348// NOTE: This limits the number of value types to 31, but that's 3x more than
349// what we currently have now. See lldb/Utility/ValueType.h for helpers for
350// working with synthetic value types.
351static constexpr unsigned ValueTypeSyntheticMask = 0x20;
352
353/// Token size/granularities for Input Readers.
354
362
363/// These mask bits allow a common interface for queries that can
364/// limit the amount of information that gets parsed to only the
365/// information that is requested. These bits also can indicate what
366/// actually did get resolved during query function calls.
367///
368/// Each definition corresponds to a one of the member variables
369/// in this class, and requests that that item be resolved, or
370/// indicates that the member did get resolved.
371FLAGS_ENUM(SymbolContextItem){
372 /// Set when \a target is requested from a query, or was located
373 /// in query results
374 eSymbolContextTarget = (1u << 0),
375 /// Set when \a module is requested from a query, or was located
376 /// in query results
377 eSymbolContextModule = (1u << 1),
378 /// Set when \a comp_unit is requested from a query, or was
379 /// located in query results
380 eSymbolContextCompUnit = (1u << 2),
381 /// Set when \a function is requested from a query, or was located
382 /// in query results
383 eSymbolContextFunction = (1u << 3),
384 /// Set when the deepest \a block is requested from a query, or
385 /// was located in query results
386 eSymbolContextBlock = (1u << 4),
387 /// Set when \a line_entry is requested from a query, or was
388 /// located in query results
389 eSymbolContextLineEntry = (1u << 5),
390 /// Set when \a symbol is requested from a query, or was located
391 /// in query results
392 eSymbolContextSymbol = (1u << 6),
393 /// Indicates to try and lookup everything up during a routine
394 /// symbol context query.
395 eSymbolContextEverything = ((eSymbolContextSymbol << 1) - 1u),
396 /// Set when \a global or static variable is requested from a
397 /// query, or was located in query results.
398 /// eSymbolContextVariable is potentially expensive to lookup so
399 /// it isn't included in eSymbolContextEverything which stops it
400 /// from being used during frame PC lookups and many other
401 /// potential address to symbol context lookups.
402 eSymbolContextVariable = (1u << 7),
403
404 // Keep this last and up-to-date for what the last enum value is.
405 eSymbolContextLastItem = eSymbolContextVariable,
406};
407LLDB_MARK_AS_BITMASK_ENUM(SymbolContextItem)
408
409FLAGS_ENUM(Permissions){ePermissionsWritable = (1u << 0),
410 ePermissionsReadable = (1u << 1),
411 ePermissionsExecutable = (1u << 2)};
412LLDB_MARK_AS_BITMASK_ENUM(Permissions)
413
415 eInputReaderActivate, ///< reader is newly pushed onto the reader stack
416 eInputReaderAsynchronousOutputWritten, ///< an async output event occurred;
417 ///< the reader may want to do
418 ///< something
419 eInputReaderReactivate, ///< reader is on top of the stack again after another
420 ///< reader was popped off
421 eInputReaderDeactivate, ///< another reader was pushed on the stack
422 eInputReaderGotToken, ///< reader got one of its tokens (granularity)
423 eInputReaderInterrupt, ///< reader received an interrupt signal (probably from
424 ///< a control-c)
425 eInputReaderEndOfFile, ///< reader received an EOF char (probably from a
426 ///< control-d)
427 eInputReaderDone ///< reader was just popped off the stack and is done
428};
429
430FLAGS_ENUM(BreakpointEventType){
431 eBreakpointEventTypeInvalidType = (1u << 0),
432 eBreakpointEventTypeAdded = (1u << 1),
433 eBreakpointEventTypeRemoved = (1u << 2),
434 eBreakpointEventTypeLocationsAdded = (1u << 3), ///< Locations added doesn't
435 ///< get sent when the
436 ///< breakpoint is created
437 eBreakpointEventTypeLocationsRemoved = (1u << 4),
438 eBreakpointEventTypeLocationsResolved = (1u << 5),
439 eBreakpointEventTypeEnabled = (1u << 6),
440 eBreakpointEventTypeDisabled = (1u << 7),
441 eBreakpointEventTypeCommandChanged = (1u << 8),
442 eBreakpointEventTypeConditionChanged = (1u << 9),
443 eBreakpointEventTypeIgnoreChanged = (1u << 10),
444 eBreakpointEventTypeThreadChanged = (1u << 11),
445 eBreakpointEventTypeAutoContinueChanged = (1u << 12)};
446
447FLAGS_ENUM(WatchpointEventType){
448 eWatchpointEventTypeInvalidType = (1u << 0),
449 eWatchpointEventTypeAdded = (1u << 1),
450 eWatchpointEventTypeRemoved = (1u << 2),
451 eWatchpointEventTypeEnabled = (1u << 6),
452 eWatchpointEventTypeDisabled = (1u << 7),
453 eWatchpointEventTypeCommandChanged = (1u << 8),
454 eWatchpointEventTypeConditionChanged = (1u << 9),
455 eWatchpointEventTypeIgnoreChanged = (1u << 10),
456 eWatchpointEventTypeThreadChanged = (1u << 11),
457 eWatchpointEventTypeTypeChanged = (1u << 12)};
458
460 /// Don't stop when the watched memory region is written to.
462 /// Stop on any write access to the memory region, even if
463 /// the value doesn't change. On some architectures, a write
464 /// near the memory region may be falsely reported as a match,
465 /// and notify this spurious stop as a watchpoint trap.
467 /// Stop on a write to the memory region that changes its value.
468 /// This is most likely the behavior a user expects, and is the
469 /// behavior in gdb. lldb can silently ignore writes near the
470 /// watched memory region that are reported as accesses to lldb.
472};
473
474/// Programming language type.
475///
476/// These enumerations use the same language enumerations as the DWARF
477/// specification for ease of use and consistency.
478/// The enum -> string code is in Language.cpp, don't change this
479/// table without updating that code as well.
480///
481/// This datatype is used in SBExpressionOptions::SetLanguage() which
482/// makes this type API. Do not change its underlying storage type!
484 eLanguageTypeUnknown = 0x0000, ///< Unknown or invalid language value.
485 eLanguageTypeC89 = 0x0001, ///< ISO C:1989.
486 eLanguageTypeC = 0x0002, ///< Non-standardized C, such as K&R.
487 eLanguageTypeAda83 = 0x0003, ///< ISO Ada:1983.
488 eLanguageTypeC_plus_plus = 0x0004, ///< ISO C++:1998.
489 eLanguageTypeCobol74 = 0x0005, ///< ISO Cobol:1974.
490 eLanguageTypeCobol85 = 0x0006, ///< ISO Cobol:1985.
491 eLanguageTypeFortran77 = 0x0007, ///< ISO Fortran 77.
492 eLanguageTypeFortran90 = 0x0008, ///< ISO Fortran 90.
493 eLanguageTypePascal83 = 0x0009, ///< ISO Pascal:1983.
494 eLanguageTypeModula2 = 0x000a, ///< ISO Modula-2:1996.
495 eLanguageTypeJava = 0x000b, ///< Java.
496 eLanguageTypeC99 = 0x000c, ///< ISO C:1999.
497 eLanguageTypeAda95 = 0x000d, ///< ISO Ada:1995.
498 eLanguageTypeFortran95 = 0x000e, ///< ISO Fortran 95.
499 eLanguageTypePLI = 0x000f, ///< ANSI PL/I:1976.
500 eLanguageTypeObjC = 0x0010, ///< Objective-C.
501 eLanguageTypeObjC_plus_plus = 0x0011, ///< Objective-C++.
502 eLanguageTypeUPC = 0x0012, ///< Unified Parallel C.
503 eLanguageTypeD = 0x0013, ///< D.
504 eLanguageTypePython = 0x0014, ///< Python.
505 // NOTE: The below are DWARF5 constants, subject to change upon
506 // completion of the DWARF5 specification
507 eLanguageTypeOpenCL = 0x0015, ///< OpenCL.
508 eLanguageTypeGo = 0x0016, ///< Go.
509 eLanguageTypeModula3 = 0x0017, ///< Modula 3.
510 eLanguageTypeHaskell = 0x0018, ///< Haskell.
511 eLanguageTypeC_plus_plus_03 = 0x0019, ///< ISO C++:2003.
512 eLanguageTypeC_plus_plus_11 = 0x001a, ///< ISO C++:2011.
513 eLanguageTypeOCaml = 0x001b, ///< OCaml.
514 eLanguageTypeRust = 0x001c, ///< Rust.
515 eLanguageTypeC11 = 0x001d, ///< ISO C:2011.
516 eLanguageTypeSwift = 0x001e, ///< Swift.
517 eLanguageTypeJulia = 0x001f, ///< Julia.
518 eLanguageTypeDylan = 0x0020, ///< Dylan.
519 eLanguageTypeC_plus_plus_14 = 0x0021, ///< ISO C++:2014.
520 eLanguageTypeFortran03 = 0x0022, ///< ISO Fortran 2003.
521 eLanguageTypeFortran08 = 0x0023, ///< ISO Fortran 2008.
527 eLanguageTypeC_plus_plus_17 = 0x002a, ///< ISO C++:2017.
528 eLanguageTypeC_plus_plus_20 = 0x002b, ///< ISO C++:2020.
538
539 // Vendor Extensions
540 // Note: Language::GetNameForLanguageType
541 // assumes these can be used as indexes into array language_names, and
542 // Language::SetLanguageFromCString and Language::AsCString assume these can
543 // be used as indexes into array g_languages.
544 eLanguageTypeMipsAssembler, ///< Mips_Assembler.
546};
547
558
564
570
577
585
694 eArgTypeLastArg // Always keep this entry as the last entry in this
695 // enumeration!!
696};
697
698/// Symbol types.
699// Symbol holds the SymbolType in a 6-bit field (m_type), so if you get over 63
700// entries you will have to resize that field.
734
738 eSectionTypeContainer, ///< The section contains child sections
740 eSectionTypeDataCString, ///< Inlined C string data
741 eSectionTypeDataCStringPointers, ///< Pointers to C string data
742 eSectionTypeDataSymbolAddress, ///< Address of a symbol in the symbol table
749 eSectionTypeDataObjCMessageRefs, ///< Pointer to function pointer + selector
750 eSectionTypeDataObjCCFStrings, ///< Objective-C const CFString/NSString
751 ///< objects
771 eSectionTypeELFSymbolTable, ///< Elf SHT_SYMTAB section
772 eSectionTypeELFDynamicSymbols, ///< Elf SHT_DYNSYM section
773 eSectionTypeELFRelocationEntries, ///< Elf SHT_REL or SHT_REL section
774 eSectionTypeELFDynamicLinkInfo, ///< Elf SHT_DYNAMIC section
778 eSectionTypeCompactUnwind, ///< compact unwind section in Mach-O,
779 ///< __TEXT,__unwind_info
781 eSectionTypeAbsoluteAddress, ///< Dummy section for symbols with absolute
782 ///< address
784 eSectionTypeDWARFDebugTypes, ///< DWARF .debug_types section
785 eSectionTypeDWARFDebugNames, ///< DWARF v5 .debug_names
787 eSectionTypeDWARFDebugLineStr, ///< DWARF v5 .debug_line_str
788 eSectionTypeDWARFDebugRngLists, ///< DWARF v5 .debug_rnglists
789 eSectionTypeDWARFDebugLocLists, ///< DWARF v5 .debug_loclists
804};
805
806FLAGS_ENUM(EmulateInstructionOptions){
807 eEmulateInstructionOptionNone = (0u),
808 eEmulateInstructionOptionAutoAdvancePC = (1u << 0),
809 eEmulateInstructionOptionIgnoreConditions = (1u << 1)};
810
811FLAGS_ENUM(FunctionNameType){
812 eFunctionNameTypeNone = 0u,
813 eFunctionNameTypeAuto =
814 (1u << 1), ///< Automatically figure out which FunctionNameType
815 ///< bits to set based on the function name.
816 eFunctionNameTypeFull = (1u << 2), ///< The function name.
817 ///< For C this is the same as just the name of the function For C++ this is
818 ///< the mangled or demangled version of the mangled name. For ObjC this is
819 ///< the full function signature with the + or - and the square brackets and
820 ///< the class and selector
821 eFunctionNameTypeBase = (1u
822 << 3), ///< The function name only, no namespaces
823 ///< or arguments and no class
824 ///< methods or selectors will be searched.
825 eFunctionNameTypeMethod = (1u << 4), ///< Find function by method name (C++)
826 ///< with no namespace or arguments
827 eFunctionNameTypeSelector =
828 (1u << 5), ///< Find function by selector name (ObjC) names
829 eFunctionNameTypeAny =
830 eFunctionNameTypeAuto ///< DEPRECATED: use eFunctionNameTypeAuto
831};
832LLDB_MARK_AS_BITMASK_ENUM(FunctionNameType)
833
834/// Basic types enumeration for the public API SBType::GetBasicType().
872
873/// Deprecated
876
877 /// Intel Processor Trace
879};
880
894
895FLAGS_ENUM(TypeClass){
896 eTypeClassInvalid = (0u), eTypeClassArray = (1u << 0),
897 eTypeClassBlockPointer = (1u << 1), eTypeClassBuiltin = (1u << 2),
898 eTypeClassClass = (1u << 3), eTypeClassComplexFloat = (1u << 4),
899 eTypeClassComplexInteger = (1u << 5), eTypeClassEnumeration = (1u << 6),
900 eTypeClassFunction = (1u << 7), eTypeClassMemberPointer = (1u << 8),
901 eTypeClassObjCObject = (1u << 9), eTypeClassObjCInterface = (1u << 10),
902 eTypeClassObjCObjectPointer = (1u << 11), eTypeClassPointer = (1u << 12),
903 eTypeClassReference = (1u << 13), eTypeClassStruct = (1u << 14),
904 eTypeClassTypedef = (1u << 15), eTypeClassUnion = (1u << 16),
905 eTypeClassVector = (1u << 17),
906 // Define the last type class as the MSBit of a 32 bit value
907 eTypeClassOther = (1u << 31),
908 // Define a mask that can be used for any type when finding types
909 eTypeClassAny = (0xffffffffu)};
911
924
925/// Type of match to be performed when looking for a formatter for a data type.
926/// Used by classes like SBTypeNameSpecifier or lldb_private::TypeMatcher.
934
935/// Options that can be set for a formatter to alter its behavior. Not
936/// all of these are applicable to all formatter types.
937FLAGS_ENUM(TypeOptions){eTypeOptionNone = (0u),
938 eTypeOptionCascade = (1u << 0),
939 eTypeOptionSkipPointers = (1u << 1),
940 eTypeOptionSkipReferences = (1u << 2),
941 eTypeOptionHideChildren = (1u << 3),
942 eTypeOptionHideValue = (1u << 4),
943 eTypeOptionShowOneLiner = (1u << 5),
944 eTypeOptionHideNames = (1u << 6),
945 eTypeOptionNonCacheable = (1u << 7),
946 eTypeOptionHideEmptyAggregates = (1u << 8),
947 eTypeOptionFrontEndWantsDereference = (1u << 9),
948 eTypeOptionCustomSubscripting = (1u << 10)};
949
950/// This is the return value for frame comparisons. If you are comparing frame
951/// A to frame B the following cases arise:
952///
953/// 1) When frame A pushes frame B (or a frame that ends up pushing
954/// B) A is Older than B.
955///
956/// 2) When frame A pushed frame B (or if frameA is on the stack
957/// but B is not) A is Younger than B.
958///
959/// 3) When frame A and frame B have the same StackID, they are
960/// Equal.
961///
962/// 4) When frame A and frame B have the same immediate parent
963/// frame, but are not equal, the comparison yields SameParent.
964///
965/// 5) If the two frames are on different threads or processes the
966/// comparison is Invalid.
967///
968/// 6) If for some reason we can't figure out what went on, we
969/// return Unknown.
978
979/// File Permissions.
980///
981/// Designed to mimic the unix file permission bits so they can be used with
982/// functions that set 'mode_t' to certain values for permissions.
983FLAGS_ENUM(FilePermissions){
984 eFilePermissionsUserRead = (1u << 8),
985 eFilePermissionsUserWrite = (1u << 7),
986 eFilePermissionsUserExecute = (1u << 6),
987 eFilePermissionsGroupRead = (1u << 5),
988 eFilePermissionsGroupWrite = (1u << 4),
989 eFilePermissionsGroupExecute = (1u << 3),
990 eFilePermissionsWorldRead = (1u << 2),
991 eFilePermissionsWorldWrite = (1u << 1),
992 eFilePermissionsWorldExecute = (1u << 0),
993
994 eFilePermissionsUserRW = (eFilePermissionsUserRead |
995 eFilePermissionsUserWrite | 0),
996 eFileFilePermissionsUserRX = (eFilePermissionsUserRead | 0 |
997 eFilePermissionsUserExecute),
998 eFilePermissionsUserRWX = (eFilePermissionsUserRead |
999 eFilePermissionsUserWrite |
1000 eFilePermissionsUserExecute),
1001
1002 eFilePermissionsGroupRW = (eFilePermissionsGroupRead |
1003 eFilePermissionsGroupWrite | 0),
1004 eFilePermissionsGroupRX = (eFilePermissionsGroupRead | 0 |
1005 eFilePermissionsGroupExecute),
1006 eFilePermissionsGroupRWX = (eFilePermissionsGroupRead |
1007 eFilePermissionsGroupWrite |
1008 eFilePermissionsGroupExecute),
1009
1010 eFilePermissionsWorldRW = (eFilePermissionsWorldRead |
1011 eFilePermissionsWorldWrite | 0),
1012 eFilePermissionsWorldRX = (eFilePermissionsWorldRead | 0 |
1013 eFilePermissionsWorldExecute),
1014 eFilePermissionsWorldRWX = (eFilePermissionsWorldRead |
1015 eFilePermissionsWorldWrite |
1016 eFilePermissionsWorldExecute),
1017
1018 eFilePermissionsEveryoneR = (eFilePermissionsUserRead |
1019 eFilePermissionsGroupRead |
1020 eFilePermissionsWorldRead),
1021 eFilePermissionsEveryoneW = (eFilePermissionsUserWrite |
1022 eFilePermissionsGroupWrite |
1023 eFilePermissionsWorldWrite),
1024 eFilePermissionsEveryoneX = (eFilePermissionsUserExecute |
1025 eFilePermissionsGroupExecute |
1026 eFilePermissionsWorldExecute),
1027
1028 eFilePermissionsEveryoneRW = (eFilePermissionsEveryoneR |
1029 eFilePermissionsEveryoneW | 0),
1030 eFilePermissionsEveryoneRX = (eFilePermissionsEveryoneR | 0 |
1031 eFilePermissionsEveryoneX),
1032 eFilePermissionsEveryoneRWX = (eFilePermissionsEveryoneR |
1033 eFilePermissionsEveryoneW |
1034 eFilePermissionsEveryoneX),
1035 eFilePermissionsFileDefault = eFilePermissionsUserRW,
1036 eFilePermissionsDirectoryDefault = eFilePermissionsUserRWX,
1037};
1038
1039/// Queue work item types.
1040///
1041/// The different types of work that can be enqueued on a libdispatch aka Grand
1042/// Central Dispatch (GCD) queue.
1048
1049/// Queue type.
1050///
1051/// libdispatch aka Grand Central Dispatch (GCD) queues can be either
1052/// serial (executing on one thread) or concurrent (executing on
1053/// multiple threads).
1059
1060/// Expression Evaluation Stages.
1061///
1062/// These are the cancellable stages of expression evaluation, passed
1063/// to the expression evaluation callback, so that you can interrupt
1064/// expression evaluation at the various points in its lifecycle.
1071
1072/// Architecture-agnostic categorization of instructions for traversing the
1073/// control flow of a trace.
1074///
1075/// A single instruction can match one or more of these categories.
1077 /// The instruction could not be classified.
1079 /// The instruction is something not listed below, i.e. it's a sequential
1080 /// instruction that doesn't affect the control flow of the program.
1082 /// The instruction is a near (function) call.
1084 /// The instruction is a near (function) return.
1086 /// The instruction is a near unconditional jump.
1088 /// The instruction is a near conditional jump.
1090 /// The instruction is a call-like far transfer.
1091 /// E.g. SYSCALL, SYSENTER, or FAR CALL.
1093 /// The instruction is a return-like far transfer.
1094 /// E.g. SYSRET, SYSEXIT, IRET, or FAR RET.
1096 /// The instruction is a jump-like far transfer.
1097 /// E.g. FAR JMP.
1099};
1100
1101/// Watchpoint Kind.
1102///
1103/// Indicates what types of events cause the watchpoint to fire. Used by Native
1104/// *Protocol-related classes.
1105FLAGS_ENUM(WatchpointKind){eWatchpointKindWrite = (1u << 0),
1106 eWatchpointKindRead = (1u << 1)};
1107
1116
1117/// Used with SBHostOS::GetLLDBPath (lldb::PathType) to find files that are
1118/// related to LLDB on the current host machine. Most files are
1119/// relative to LLDB or are in known locations.
1121 ePathTypeLLDBShlibDir, ///< The directory where the lldb.so (unix) or LLDB
1122 ///< mach-o file in LLDB.framework (MacOSX) exists
1123 ePathTypeSupportExecutableDir, ///< Find LLDB support executable directory
1124 ///< (debugserver, etc)
1125 ePathTypeHeaderDir, ///< Find LLDB header file directory
1126 ePathTypePythonDir, ///< Find Python modules (PYTHONPATH) directory
1127 ePathTypeLLDBSystemPlugins, ///< System plug-ins directory
1128 ePathTypeLLDBUserPlugins, ///< User plug-ins directory
1129 ePathTypeLLDBTempSystemDir, ///< The LLDB temp directory for this system that
1130 ///< will be cleaned up on exit
1131 ePathTypeGlobalLLDBTempSystemDir, ///< The LLDB temp directory for this
1132 ///< system, NOT cleaned up on a process
1133 ///< exit.
1134 ePathTypeClangDir ///< Find path to Clang builtin headers
1135};
1136
1137/// Kind of member function.
1138///
1139/// Used by the type system.
1141 eMemberFunctionKindUnknown = 0, ///< Not sure what the type of this is
1142 eMemberFunctionKindConstructor, ///< A function used to create instances
1143 eMemberFunctionKindDestructor, ///< A function used to tear down existing
1144 ///< instances
1145 eMemberFunctionKindInstanceMethod, ///< A function that applies to a specific
1146 ///< instance
1147 eMemberFunctionKindStaticMethod ///< A function that applies to a type rather
1148 ///< than any instance
1149};
1150
1151/// String matching algorithm used by SBTarget.
1158
1159/// Bitmask that describes details about a type.
1160FLAGS_ENUM(TypeFlags){
1161 eTypeHasChildren = (1u << 0), eTypeHasValue = (1u << 1),
1162 eTypeIsArray = (1u << 2), eTypeIsBlock = (1u << 3),
1163 eTypeIsBuiltIn = (1u << 4), eTypeIsClass = (1u << 5),
1164 eTypeIsCPlusPlus = (1u << 6), eTypeIsEnumeration = (1u << 7),
1165 eTypeIsFuncPrototype = (1u << 8), eTypeIsMember = (1u << 9),
1166 eTypeIsObjC = (1u << 10), eTypeIsPointer = (1u << 11),
1167 eTypeIsReference = (1u << 12), eTypeIsStructUnion = (1u << 13),
1168 eTypeIsTemplate = (1u << 14), eTypeIsTypedef = (1u << 15),
1169 eTypeIsVector = (1u << 16), eTypeIsScalar = (1u << 17),
1170 eTypeIsInteger = (1u << 18), eTypeIsFloat = (1u << 19),
1171 eTypeIsComplex = (1u << 20), eTypeIsSigned = (1u << 21),
1172 eTypeInstanceIsPointer = (1u << 22)};
1173
1174FLAGS_ENUM(CommandFlags){
1175 /// eCommandRequiresTarget
1176 ///
1177 /// Ensures a valid target is contained in m_exe_ctx prior to executing the
1178 /// command. If a target doesn't exist or is invalid, the command will fail
1179 /// and CommandObject::GetInvalidTargetDescription() will be returned as the
1180 /// error. CommandObject subclasses can override the virtual function for
1181 /// GetInvalidTargetDescription() to provide custom strings when needed.
1182 eCommandRequiresTarget = (1u << 0),
1183 /// eCommandRequiresProcess
1184 ///
1185 /// Ensures a valid process is contained in m_exe_ctx prior to executing the
1186 /// command. If a process doesn't exist or is invalid, the command will fail
1187 /// and CommandObject::GetInvalidProcessDescription() will be returned as
1188 /// the error. CommandObject subclasses can override the virtual function
1189 /// for GetInvalidProcessDescription() to provide custom strings when
1190 /// needed.
1191 eCommandRequiresProcess = (1u << 1),
1192 /// eCommandRequiresThread
1193 ///
1194 /// Ensures a valid thread is contained in m_exe_ctx prior to executing the
1195 /// command. If a thread doesn't exist or is invalid, the command will fail
1196 /// and CommandObject::GetInvalidThreadDescription() will be returned as the
1197 /// error. CommandObject subclasses can override the virtual function for
1198 /// GetInvalidThreadDescription() to provide custom strings when needed.
1199 eCommandRequiresThread = (1u << 2),
1200 /// eCommandRequiresFrame
1201 ///
1202 /// Ensures a valid frame is contained in m_exe_ctx prior to executing the
1203 /// command. If a frame doesn't exist or is invalid, the command will fail
1204 /// and CommandObject::GetInvalidFrameDescription() will be returned as the
1205 /// error. CommandObject subclasses can override the virtual function for
1206 /// GetInvalidFrameDescription() to provide custom strings when needed.
1207 eCommandRequiresFrame = (1u << 3),
1208 /// eCommandRequiresRegContext
1209 ///
1210 /// Ensures a valid register context (from the selected frame if there is a
1211 /// frame in m_exe_ctx, or from the selected thread from m_exe_ctx) is
1212 /// available from m_exe_ctx prior to executing the command. If a target
1213 /// doesn't exist or is invalid, the command will fail and
1214 /// CommandObject::GetInvalidRegContextDescription() will be returned as the
1215 /// error. CommandObject subclasses can override the virtual function for
1216 /// GetInvalidRegContextDescription() to provide custom strings when needed.
1217 eCommandRequiresRegContext = (1u << 4),
1218 /// eCommandTryTargetAPILock
1219 ///
1220 /// Attempts to acquire the target lock if a target is selected in the
1221 /// command interpreter. If the command object fails to acquire the API
1222 /// lock, the command will fail with an appropriate error message.
1223 eCommandTryTargetAPILock = (1u << 5),
1224 /// eCommandProcessMustBeLaunched
1225 ///
1226 /// Verifies that there is a launched process in m_exe_ctx, if there isn't,
1227 /// the command will fail with an appropriate error message.
1228 eCommandProcessMustBeLaunched = (1u << 6),
1229 /// eCommandProcessMustBePaused
1230 ///
1231 /// Verifies that there is a paused process in m_exe_ctx, if there isn't,
1232 /// the command will fail with an appropriate error message.
1233 eCommandProcessMustBePaused = (1u << 7),
1234 /// eCommandProcessMustBeTraced
1235 ///
1236 /// Verifies that the process is being traced by a Trace plug-in, if it
1237 /// isn't the command will fail with an appropriate error message.
1238 eCommandProcessMustBeTraced = (1u << 8)};
1239
1240/// Whether a summary should cap how much data it returns to users or not.
1245
1246/// The result from a command interpreter run.
1248 /// Command interpreter finished successfully.
1250 /// Stopped because the corresponding option was set and the inferior
1251 /// crashed.
1253 /// Stopped because the corresponding option was set and a command returned
1254 /// an error.
1256 /// Stopped because quit was requested.
1258};
1259
1260// Style of core file to create when calling SaveCore.
1268
1269/// Events that might happen during a trace session.
1271 /// Tracing was disabled for some time due to a software trigger.
1273 /// Tracing was disable for some time due to a hardware trigger.
1275 /// Event due to CPU change for a thread. This event is also fired when
1276 /// suddenly it's not possible to identify the cpu of a given thread.
1278 /// Event due to a CPU HW clock tick.
1280 /// The underlying tracing technology emitted a synchronization event used by
1281 /// trace processors.
1283};
1284
1285// Enum used to identify which kind of item a \a TraceCursor is pointing at
1291
1292/// Enum to indicate the reference point when invoking
1293/// \a TraceCursor::Seek().
1294/// The following values are inspired by \a std::istream::seekg.
1296 /// The beginning of the trace, i.e the oldest item.
1298 /// The current position in the trace.
1300 /// The end of the trace, i.e the most recent item.
1302};
1303
1304/// Enum to control the verbosity level of `dwim-print` execution.
1306 /// Run `dwim-print` with no verbosity.
1308 /// Print a message when `dwim-print` uses `expression` evaluation.
1310 /// Always print a message indicating how `dwim-print` is evaluating its
1311 /// expression.
1313};
1314
1317 ///< Watchpoint was created watching a variable
1319 ///< Watchpoint was created watching the result of an expression that was
1320 ///< evaluated at creation time.
1322};
1323
1329 eSymbolCompletion = (1ul << 3),
1330 eModuleCompletion = (1ul << 4),
1351 eCustomCompletion = (1ul << 25),
1352 eThreadIDCompletion = (1ul << 26),
1354 // This last enum element is just for input validation.
1355 // Add new completions before this element,
1356 // and then increment eTerminatorCompletion's shift value
1358};
1359
1360/// Specifies if children need to be re-computed
1361/// after a call to \ref SyntheticChildrenFrontEnd::Update.
1363 eRefetch = 0, ///< Children need to be recomputed dynamically.
1364
1365 eReuse = 1, ///< Children did not change and don't need to be recomputed;
1366 ///< re-use what we computed the last time we called Update.
1367};
1368
1374
1381
1382/// Used in the SBProcess AddressMask/FixAddress methods.
1389
1390/// Used in the SBProcess AddressMask/FixAddress methods.
1397
1398/// Used by the debugger to indicate which events are being broadcasted.
1408
1409/// Used for expressing severity in logs and diagnostics.
1413 eSeverityInfo, // Equivalent to Remark used in clang.
1414};
1415
1416/// Callback return value, indicating whether it handled printing the
1417/// CommandReturnObject or deferred doing so to the CommandInterpreter.
1419 /// The callback deferred printing the command return object.
1421 /// The callback handled printing the command return object.
1423};
1424
1425/// Used to determine when to show disassembly.
1432
1439
1441 eNameMatchStyleAuto = eFunctionNameTypeAuto,
1442 eNameMatchStyleFull = eFunctionNameTypeFull,
1443 eNameMatchStyleBase = eFunctionNameTypeBase,
1444 eNameMatchStyleMethod = eFunctionNameTypeMethod,
1445 eNameMatchStyleSelector = eFunctionNameTypeSelector,
1446 eNameMatchStyleRegex = eFunctionNameTypeSelector << 1
1447};
1448
1449/// Data Inspection Language (DIL) evaluation modes.
1450/// DIL will only attempt evaluating expressions that contain tokens
1451/// allowed by a selected mode.
1453 /// Allowed: identifiers, operators: '.'.
1455 /// Allowed: identifiers, integers, operators: '.', '->', '*', '&', '[]'.
1457 /// Allowed: everything supported by DIL.
1458 /// \see lldb/docs/dil-expr-lang.ebnf
1460};
1461
1462/// When the Process plugin can retrieve information
1463/// about all binaries loaded in the target process,
1464/// or given a list of binary load addresses, this
1465/// enum specifies how much information needed from
1466/// the Process plugin; there may be performance reasons
1467/// to limit the amount of information returned.
1474
1475} // namespace lldb
1476
1477#endif // LLDB_LLDB_ENUMERATIONS_H
#define LLDB_MARK_AS_BITMASK_ENUM(Enum)
#define FLAGS_ENUM(Name)
@ eInputReaderEndOfFile
reader received an EOF char (probably from a control-d)
@ eInputReaderActivate
reader is newly pushed onto the reader stack
@ eInputReaderInterrupt
reader received an interrupt signal (probably from a control-c)
@ eInputReaderReactivate
reader is on top of the stack again after another reader was popped off
@ eInputReaderDeactivate
another reader was pushed on the stack
@ eInputReaderAsynchronousOutputWritten
an async output event occurred; the reader may want to do something
@ eInputReaderDone
reader was just popped off the stack and is done
@ eInputReaderGotToken
reader got one of its tokens (granularity)
@ eRemoteDiskDirectoryCompletion
@ eFrameIndexCompletion
@ eModuleUUIDCompletion
@ eDisassemblyFlavorCompletion
@ eVariablePathCompletion
@ eDiskDirectoryCompletion
@ eTypeCategoryNameCompletion
@ ePlatformPluginCompletion
@ eSettingsNameCompletion
@ eSourceFileCompletion
@ eTypeLanguageCompletion
@ eStopHookIDCompletion
@ eWatchpointIDCompletion
@ eBreakpointNameCompletion
@ eProcessPluginCompletion
@ eRemoteDiskFileCompletion
@ eBreakpointCompletion
@ eThreadIndexCompletion
@ eArchitectureCompletion
@ eProcessNameCompletion
@ eManagedPluginCompletion
@ eTerminatorCompletion
TypeSummaryCapping
Whether a summary should cap how much data it returns to users or not.
ScriptLanguage
Script interpreter types.
@ eScriptLanguageUnknown
@ eScriptLanguageDefault
@ eScriptLanguageNone
@ eScriptLanguagePython
MatchType
String matching algorithm used by SBTarget.
@ eMatchTypeRegexInsensitive
ExpressionEvaluationPhase
Expression Evaluation Stages.
@ eExpressionEvaluationComplete
@ eExpressionEvaluationParse
@ eExpressionEvaluationExecution
@ eExpressionEvaluationIRGen
Severity
Used for expressing severity in logs and diagnostics.
TraceType
Deprecated.
@ eTraceTypeProcessorTrace
Intel Processor Trace.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
@ eDescriptionLevelBrief
@ kNumDescriptionLevels
@ eDescriptionLevelInitial
@ eDescriptionLevelFull
@ eDescriptionLevelVerbose
DebuggerBroadcastBit
Used by the debugger to indicate which events are being broadcasted.
@ eBroadcastBitProgressCategory
Deprecated.
@ eBroadcastBitExternalProgress
@ eBroadcastBitProgress
@ eBroadcastSymbolChange
@ eBroadcastBitExternalProgressCategory
Deprecated.
BasicType
Basic types enumeration for the public API SBType::GetBasicType().
@ eBasicTypeUnsignedShort
@ eBasicTypeSignedChar
@ eBasicTypeUnsignedInt128
@ eBasicTypeFloatComplex
@ eBasicTypeUnsignedWChar
@ eBasicTypeUnsignedLong
@ eBasicTypeLongDoubleComplex
@ eBasicTypeSignedWChar
@ eBasicTypeUnsignedChar
@ eBasicTypeUnsignedLongLong
@ eBasicTypeDoubleComplex
@ eBasicTypeLongDouble
@ eBasicTypeUnsignedInt
@ eBasicTypeObjCClass
RunDirection
Execution directions.
@ eWatchpointWriteTypeOnModify
Stop on a write to the memory region that changes its value.
@ eWatchpointWriteTypeAlways
Stop on any write access to the memory region, even if the value doesn't change.
@ eWatchpointWriteTypeDisabled
Don't stop when the watched memory region is written to.
ChildCacheState
Specifies if children need to be re-computed after a call to SyntheticChildrenFrontEnd::Update.
@ eRefetch
Children need to be recomputed dynamically.
@ eReuse
Children did not change and don't need to be recomputed; re-use what we computed the last time we cal...
@ eWatchPointValueKindInvalid
Watchpoint was created watching a variable.
@ eWatchPointValueKindExpression
@ eWatchPointValueKindVariable
Watchpoint was created watching the result of an expression that was evaluated at creation time.
@ 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.
@ eFrameCompareInvalid
@ eFrameCompareUnknown
@ eFrameCompareSameParent
@ 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.
@ 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.
@ eFormatterMatchExact
@ eFormatterMatchRegex
@ eLastFormatterMatchType
@ eFormatterMatchCallback
static constexpr unsigned ValueTypeSyntheticMask
A mask that we can use to check if the value type is synthetic or not.
ExpressionResults
The results of expression evaluation.
@ eExpressionTimedOut
@ eExpressionCompleted
@ eExpressionHitBreakpoint
@ eExpressionInterrupted
@ eExpressionDiscarded
@ eExpressionParseError
@ eExpressionStoppedForDebug
@ eExpressionResultUnavailable
@ eExpressionThreadVanished
@ eExpressionSetupError
@ eTemplateArgumentKindTemplate
@ eTemplateArgumentKindTemplateExpansion
@ eTemplateArgumentKindNull
@ eTemplateArgumentKindNullPtr
@ eTemplateArgumentKindDeclaration
@ eTemplateArgumentKindIntegral
@ eTemplateArgumentKindPack
@ eTemplateArgumentKindType
@ eTemplateArgumentKindStructuralValue
@ eTemplateArgumentKindExpression
SymbolType
Symbol types.
@ eSymbolTypeUndefined
@ eSymbolTypeVariableType
@ eSymbolTypeObjCMetaClass
@ eSymbolTypeReExported
@ eSymbolTypeObjCClass
@ eSymbolTypeObjectFile
@ eSymbolTypeTrampoline
@ eSymbolTypeResolver
@ eSymbolTypeSourceFile
@ eSymbolTypeException
@ eSymbolTypeVariable
@ eSymbolTypeAbsolute
@ eSymbolTypeAdditional
When symbols take more than one entry, the extra entries get this type.
@ eSymbolTypeInstrumentation
@ eSymbolTypeHeaderFile
@ eSymbolTypeCommonBlock
@ eSymbolTypeCompiler
@ eSymbolTypeLineHeader
@ eSymbolTypeObjCIVar
@ eSymbolTypeLineEntry
@ eSymbolTypeScopeBegin
@ eSymbolTypeScopeEnd
Encoding
Register encoding definitions.
@ eEncodingIEEE754
float
@ eEncodingVector
vector registers
@ eEncodingUint
unsigned integer
@ eEncodingSint
signed integer
InstrumentationRuntimeType
@ eInstrumentationRuntimeTypeThreadSanitizer
@ eInstrumentationRuntimeTypeBoundsSafety
@ eInstrumentationRuntimeTypeMainThreadChecker
@ eInstrumentationRuntimeTypeLibsanitizersAsan
@ eInstrumentationRuntimeTypeAddressSanitizer
@ eNumInstrumentationRuntimeTypes
@ eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer
@ eInstrumentationRuntimeTypeSwiftRuntimeReporting
StopDisassemblyType
Used to determine when to show disassembly.
@ eStopDisassemblyTypeNever
@ eStopDisassemblyTypeNoSource
@ eStopDisassemblyTypeAlways
@ eStopDisassemblyTypeNoDebugInfo
@ eStopShowColumnAnsi
@ eStopShowColumnCaret
@ eStopShowColumnNone
@ eStopShowColumnAnsiOrCaret
ReturnStatus
Command Return Status Types.
@ eReturnStatusStarted
@ eReturnStatusSuccessContinuingResult
@ eReturnStatusFailed
@ eReturnStatusSuccessContinuingNoResult
@ eReturnStatusSuccessFinishResult
@ eReturnStatusInvalid
@ eReturnStatusSuccessFinishNoResult
QueueKind
Queue type.
@ eArgTypeSEDStylePair
@ eArgTypeExpressionPath
@ eArgTypeBreakpointIDRange
@ eArgTypePythonFunction
@ eArgTypePermissionsNumber
@ eArgTypeNumberPerLine
@ eArgTypePermissionsString
@ eArgTypeLogCategory
@ eArgTypeDescriptionVerbosity
@ eArgTypeOldPathPrefix
@ eArgTypePluginDomain
@ eArgTypeArchitecture
@ eArgTypeProcessName
@ eArgTypeFrameProviderIDRange
@ eArgTypeBreakpointID
@ eArgTypeThreadIndex
@ eArgTypeNewPathPrefix
@ eArgTypeStartAddress
@ eArgTypeNameMatchStyle
@ eArgTypeSettingPrefix
@ eArgTypePythonClass
@ eArgTypeFileLineColumn
@ eArgTypeCommandName
@ eArgTypeSummaryString
@ eArgTypePythonScript
@ eArgTypeRecognizerID
@ eArgTypeManagedPlugin
@ eArgTypeWatchpointID
@ eArgTypeCPUFeatures
@ eArgTypeFunctionOrSymbol
@ eArgTypeRemoteFilename
@ eArgTypeExceptionStage
@ eArgTypeSettingIndex
@ eArgTypeSettingVariableName
@ eArgTypeDisassemblyFlavor
@ eArgTypeRegisterName
@ eArgTypeBreakpointName
@ eArgTypeScriptedCommandSynchronicity
@ eArgTypeCompletionType
@ eArgTypeWatchpointIDRange
@ eArgTypeSaveCoreStyle
@ eArgTypeRegularExpression
@ eArgTypeUnsignedInteger
@ eArgTypeFunctionName
@ eArgTypeAliasOptions
@ eArgTypeDirectoryName
@ eArgTypeAddressOrExpression
ByteOrder
Byte ordering definitions.
MemberFunctionKind
Kind of member function.
@ eMemberFunctionKindInstanceMethod
A function that applies to a specific instance.
@ eMemberFunctionKindConstructor
A function used to create instances.
@ eMemberFunctionKindUnknown
Not sure what the type of this is.
@ eMemberFunctionKindDestructor
A function used to tear down existing instances.
@ eMemberFunctionKindStaticMethod
A function that applies to a type rather than any instance.
InstructionControlFlowKind
Architecture-agnostic categorization of instructions for traversing the control flow of a trace.
@ eInstructionControlFlowKindReturn
The instruction is a near (function) return.
@ eInstructionControlFlowKindFarJump
The instruction is a jump-like far transfer.
@ eInstructionControlFlowKindOther
The instruction is something not listed below, i.e.
@ eInstructionControlFlowKindFarCall
The instruction is a call-like far transfer.
@ eInstructionControlFlowKindFarReturn
The instruction is a return-like far transfer.
@ eInstructionControlFlowKindUnknown
The instruction could not be classified.
@ eInstructionControlFlowKindJump
The instruction is a near unconditional jump.
@ eInstructionControlFlowKindCall
The instruction is a near (function) call.
@ eInstructionControlFlowKindCondJump
The instruction is a near conditional jump.
TraceCursorSeekType
Enum to indicate the reference point when invoking TraceCursor::Seek().
@ eTraceCursorSeekTypeCurrent
The current position in the trace.
@ eTraceCursorSeekTypeEnd
The end of the trace, i.e the most recent item.
@ eTraceCursorSeekTypeBeginning
The beginning of the trace, i.e the oldest item.
@ eSearchDepthInvalid
@ eSearchDepthAddress
@ eSearchDepthFunction
@ kLastSearchDepthKind
@ eSearchDepthCompUnit
@ eValueTypeVTableEntry
function pointer in virtual function table
@ eValueTypeVTable
virtual function table
@ eValueTypeVariableGlobal
globals variable
@ eValueTypeConstResult
constant result variables
@ eValueTypeVariableLocal
function local variables
@ eValueTypeVariableArgument
function argument variables
@ eValueTypeRegister
stack frame register value
@ eValueTypeVariableStatic
static variable
@ eValueTypeRegisterSet
A collection of stack frame register values.
@ eValueTypeVariableThreadLocal
thread local storage variable
@ eGdbSignalBadInstruction
@ eTraceItemKindInstruction
StopReason
Thread stop reasons.
@ eStopReasonInstrumentation
@ eStopReasonPlanComplete
@ eStopReasonHistoryBoundary
@ eStopReasonBreakpoint
@ eStopReasonExec
Program was re-exec'ed.
@ eStopReasonVForkDone
@ eStopReasonInterrupt
Thread requested interrupt.
@ eStopReasonProcessorTrace
@ eStopReasonThreadExiting
@ eStopReasonException
@ eStopReasonWatchpoint
BinaryInformationLevel
When the Process plugin can retrieve information about all binaries loaded in the target process,...
@ eBinaryInformationLevelAddrName
@ eBinaryInformationLevelAddrNameUUID
@ eBinaryInformationLevelFull
@ eBinaryInformationLevelAddrOnly
AddressMaskType
Used in the SBProcess AddressMask/FixAddress methods.
@ eDynamicDontRunTarget
@ eDynamicCanRunTarget
@ eStructuredDataTypeFloat
@ eStructuredDataTypeDictionary
@ eStructuredDataTypeInvalid
@ eStructuredDataTypeInteger
@ eStructuredDataTypeGeneric
@ eStructuredDataTypeArray
@ eStructuredDataTypeSignedInteger
@ eStructuredDataTypeUnsignedInteger
@ eStructuredDataTypeNull
@ eStructuredDataTypeBoolean
@ eStructuredDataTypeString
@ eSectionTypeDWARFDebugStrOffsets
@ eSectionTypeELFDynamicSymbols
Elf SHT_DYNSYM section.
@ eSectionTypeInvalid
@ eSectionTypeDWARFDebugPubNames
@ eSectionTypeDataObjCCFStrings
Objective-C const CFString/NSString objects.
@ eSectionTypeZeroFill
@ eSectionTypeDWARFDebugLocDwo
@ eSectionTypeDWARFDebugFrame
@ eSectionTypeARMextab
@ eSectionTypeContainer
The section contains child sections.
@ eSectionTypeDWARFDebugLocLists
DWARF v5 .debug_loclists.
@ eSectionTypeDWARFDebugTypes
DWARF .debug_types section.
@ eSectionTypeDataSymbolAddress
Address of a symbol in the symbol table.
@ eSectionTypeELFDynamicLinkInfo
Elf SHT_DYNAMIC section.
@ eSectionTypeDWARFDebugMacInfo
@ eSectionTypeAbsoluteAddress
Dummy section for symbols with absolute address.
@ eSectionTypeCompactUnwind
compact unwind section in Mach-O, __TEXT,__unwind_info
@ eSectionTypeELFRelocationEntries
Elf SHT_REL or SHT_REL section.
@ eSectionTypeDWARFAppleNamespaces
@ eSectionTypeLLDBFormatters
@ eSectionTypeDWARFDebugNames
DWARF v5 .debug_names.
@ eSectionTypeDWARFDebugRngLists
DWARF v5 .debug_rnglists.
@ eSectionTypeEHFrame
@ eSectionTypeDWARFDebugStrOffsetsDwo
@ eSectionTypeDWARFDebugMacro
@ eSectionTypeDWARFAppleTypes
@ eSectionTypeDWARFDebugInfo
@ eSectionTypeDWARFDebugTypesDwo
@ eSectionTypeDWARFDebugRanges
@ eSectionTypeDWARFDebugRngListsDwo
@ eSectionTypeLLDBTypeSummaries
@ eSectionTypeGoSymtab
@ eSectionTypeARMexidx
@ eSectionTypeDWARFDebugLine
@ eSectionTypeDWARFDebugPubTypes
@ eSectionTypeDataObjCMessageRefs
Pointer to function pointer + selector.
@ eSectionTypeDWARFDebugTuIndex
@ eSectionTypeDWARFDebugStr
@ eSectionTypeDWARFDebugLineStr
DWARF v5 .debug_line_str.
@ eSectionTypeDWARFDebugLoc
@ eSectionTypeDWARFAppleNames
@ eSectionTypeDataCStringPointers
Pointers to C string data.
@ eSectionTypeDWARFAppleObjC
@ eSectionTypeSwiftModules
@ eSectionTypeDWARFDebugCuIndex
@ eSectionTypeDWARFDebugAranges
@ eSectionTypeDWARFDebugAbbrevDwo
@ eSectionTypeDWARFGNUDebugAltLink
@ eSectionTypeDWARFDebugStrDwo
@ eSectionTypeDWARFDebugAbbrev
@ eSectionTypeDataPointers
@ eSectionTypeDWARFDebugLocListsDwo
@ eSectionTypeDWARFDebugInfoDwo
@ eSectionTypeDWARFDebugAddr
@ eSectionTypeWasmName
@ eSectionTypeDataCString
Inlined C string data.
@ eSectionTypeELFSymbolTable
Elf SHT_SYMTAB section.
RunMode
Thread Run Modes.
@ eOnlyDuringStepping
DILMode
Data Inspection Language (DIL) evaluation modes.
@ eDILModeFull
Allowed: everything supported by DIL.
@ eDILModeLegacy
Allowed: identifiers, integers, operators: '.', '->', '*', '&', '[]'.
@ eDILModeSimple
Allowed: identifiers, operators: '.'.
@ eSymbolDownloadBackground
@ eSymbolDownloadForeground
CommandReturnObjectCallbackResult
Callback return value, indicating whether it handled printing the CommandReturnObject or deferred doi...
@ eCommandReturnObjectPrintCallbackSkipped
The callback deferred printing the command return object.
@ eCommandReturnObjectPrintCallbackHandled
The callback handled printing the command return object.
@ eExceptionStageReThrow
@ eExceptionStageCreate
InputReaderGranularity
Token size/granularities for Input Readers.
@ eInputReaderGranularityInvalid
@ eInputReaderGranularityAll
@ eInputReaderGranularityWord
@ eInputReaderGranularityByte
@ eInputReaderGranularityLine
QueueItemKind
Queue work item types.
@ eQueueItemKindUnknown
@ eQueueItemKindFunction
RegisterKind
Register numbering types.
@ eRegisterKindGeneric
insn ptr reg, stack ptr reg, etc not specific to any particular target
@ eRegisterKindLLDB
lldb's internal register numbers
@ eRegisterKindDWARF
the register numbers seen DWARF
@ eRegisterKindEHFrame
the register numbers seen in eh_frame
@ eRegisterKindProcessPlugin
num used by the process plugin - e.g.