LLDB: SBExpressionOptions.h Source File
LLDB mainline llvm-project lldb include lldb API SBExpressionOptions.h Go to the documentation of this file. 1 //===-- SBExpressionOptions.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_API_SBEXPRESSIONOPTIONS_H 10 #define LLDB_API_SBEXPRESSIONOPTIONS_H 11 12 #include " lldb/API/SBDefines.h " 13 #include "lldb/API/SBLanguages.h" 14 15 #include <vector> 16 17 namespace lldb { 18 19 class LLDB_API SBExpressionOptions { 20 public : 21 SBExpressionOptions (); 22 23 SBExpressionOptions ( const lldb::SBExpressionOptions &rhs); 24 25 ~SBExpressionOptions (); 26 27 const SBExpressionOptions & operator= ( const lldb::SBExpressionOptions &rhs); 28 29 bool GetCoerceResultToId () const ; 30 31 void SetCoerceResultToId ( bool coerce = true ); 32 33 bool GetUnwindOnError () const ; 34 35 void SetUnwindOnError ( bool unwind = true ); 36 37 bool GetIgnoreBreakpoints () const ; 38 39 void SetIgnoreBreakpoints ( bool ignore = true ); 40 41 lldb::DynamicValueType GetFetchDynamicValue () const ; 42 43 void SetFetchDynamicValue ( 44 lldb::DynamicValueType dynamic = lldb::eDynamicCanRunTarget ); 45 46 uint32_t GetTimeoutInMicroSeconds () const ; 47 48 // Set the timeout for the expression, 0 means wait forever.
49 void SetTimeoutInMicroSeconds (uint32_t timeout = 0); 50 51 uint32_t GetOneThreadTimeoutInMicroSeconds () const ; 52 53 // Set the timeout for running on one thread, 0 means use the default 54 // behavior. If you set this higher than the overall timeout, you'll get an 55 // error when you try to run the expression. 56 void SetOneThreadTimeoutInMicroSeconds (uint32_t timeout = 0); 57 58 bool GetTryAllThreads () const ; 59 60 void SetTryAllThreads ( bool run_others = true ); 61 62 bool GetStopOthers () const ; 63 64 void SetStopOthers ( bool stop_others = true ); 65 66 bool GetTrapExceptions () const ; 67 68 void SetTrapExceptions ( bool trap_exceptions = true ); 69 70 bool GetStopOnFork () const ; 71 72 void SetStopOnFork ( bool stop_on_fork = false ); 73 74 void SetLanguage ( lldb::LanguageType language); 75 /// Set the language using a pair of language code and version as 76 /// defined by the DWARF 6 specification.
77 /// WARNING: These codes may change until DWARF 6 is finalized. 78 void SetLanguage (lldb::SBSourceLanguageName name, uint32_t version); 79 80 #ifndef SWIG 81 void SetCancelCallback ( lldb::ExpressionCancelCallback callback, void *baton); 82 #endif 83 84 bool GetGenerateDebugInfo (); 85 86 void SetGenerateDebugInfo ( bool b = true ); 87 88 bool GetSuppressPersistentResult (); 89 90 void SetSuppressPersistentResult ( bool b = false ); 91 92 const char * GetPrefix () const ; 93 94 void SetPrefix ( const char *prefix); 95 96 void SetAutoApplyFixIts ( bool b = true ); 97 98 bool GetAutoApplyFixIts (); 99 100 void SetRetriesWithFixIts (uint64_t retries); 101 102 uint64_t GetRetriesWithFixIts (); 103 104 bool GetTopLevel (); 105 106 void SetTopLevel ( bool b = true ); 107 108 // Gets whether we will JIT an expression if it cannot be interpreted 109 bool GetAllowJIT (); 110 111 // Sets whether we will JIT an expression if it cannot be interpreted 112 void SetAllowJIT ( bool allow); 113 114 bool GetBooleanLanguageOption ( const char *option_name, SBError & error ) const ; 115 116 SBError SetBooleanLanguageOption ( const char *option_name, bool value); 117 118 bool GetTryDILFirst (); 119 120 void SetTryDILFirst ( bool b = true ); 121 122 protected : 123 lldb_private::EvaluateExpressionOptions * get () const ; 124 125 lldb_private::EvaluateExpressionOptions & ref () const ; 126 127 friend class SBFrame ; 128 friend class SBValue ; 129 friend class SBTarget ; 130 131 private : 132 // This auto_pointer is made in the constructor and is always valid.
133 mutable std::unique_ptr<lldb_private::EvaluateExpressionOptions> m_opaque_up ; 134 }; 135 136 } // namespace lldb 137 138 #endif // LLDB_API_SBEXPRESSIONOPTIONS_H error static llvm::raw_ostream & error(Stream &strm) Definition CommandReturnObject.cpp:18 SBDefines.h LLDB_API #define LLDB_API Definition SBDefines.h:28 lldb::SBError Definition SBError.h:23 lldb::SBExpressionOptions Definition SBExpressionOptions.h:19 lldb::SBExpressionOptions::SetCancelCallback void SetCancelCallback(lldb::ExpressionCancelCallback callback, void *baton) Definition SBExpressionOptions.cpp:180 lldb::SBExpressionOptions::SBExpressionOptions SBExpressionOptions() Definition SBExpressionOptions.cpp:20 lldb::SBExpressionOptions::SetAllowJIT void SetAllowJIT(bool allow) Definition SBExpressionOptions.cpp:266 lldb::SBExpressionOptions::GetBooleanLanguageOption bool GetBooleanLanguageOption(const char *option_name, SBError &error) const Definition SBExpressionOptions.cpp:277 lldb::SBExpressionOptions::SetFetchDynamicValue void SetFetchDynamicValue(lldb::DynamicValueType dynamic=lldb::eDynamicCanRunTarget) Definition SBExpressionOptions.cpp:84 lldb::SBExpressionOptions::SetStopOnFork void SetStopOnFork(bool stop_on_fork=false) Definition SBExpressionOptions.cpp:161 lldb::SBExpressionOptions::SetLanguage void SetLanguage(lldb::LanguageType language) Definition SBExpressionOptions.cpp:167 lldb::SBExpressionOptions::GetTryAllThreads bool GetTryAllThreads() const Definition SBExpressionOptions.cpp:119 lldb::SBExpressionOptions::GetPrefix const char * GetPrefix() const Definition SBExpressionOptions.cpp:211 lldb::SBExpressionOptions::ref lldb_private::EvaluateExpressionOptions & ref() const Definition SBExpressionOptions.cpp:321 lldb::SBExpressionOptions::SetSuppressPersistentResult void SetSuppressPersistentResult(bool b=false) Definition SBExpressionOptions.cpp:205 lldb::SBExpressionOptions::GetCoerceResultToId bool GetCoerceResultToId() const Definition SBExpressionOptions.cpp:42 lldb::SBExpressionOptions::GetTryDILFirst bool GetTryDILFirst() Definition SBExpressionOptions.cpp:305 lldb::SBExpressionOptions::GetIgnoreBreakpoints bool GetIgnoreBreakpoints() const Definition SBExpressionOptions.cpp:66 lldb::SBExpressionOptions::GetUnwindOnError bool GetUnwindOnError() const Definition SBExpressionOptions.cpp:54 lldb::SBExpressionOptions::SBTarget friend class SBTarget Definition SBExpressionOptions.h:129 lldb::SBExpressionOptions::SetTryAllThreads void SetTryAllThreads(bool run_others=true) Definition SBExpressionOptions.cpp:125 lldb::SBExpressionOptions::GetGenerateDebugInfo bool GetGenerateDebugInfo() Definition SBExpressionOptions.cpp:187 lldb::SBExpressionOptions::SetRetriesWithFixIts void SetRetriesWithFixIts(uint64_t retries) Definition SBExpressionOptions.cpp:241 lldb::SBExpressionOptions::SBValue friend class SBValue Definition SBExpressionOptions.h:128 lldb::SBExpressionOptions::SetTryDILFirst void SetTryDILFirst(bool b=true) Definition SBExpressionOptions.cpp:311 lldb::SBExpressionOptions::m_opaque_up std::unique_ptr< lldb_private::EvaluateExpressionOptions > m_opaque_up Definition SBExpressionOptions.h:133 lldb::SBExpressionOptions::GetAllowJIT bool GetAllowJIT() Definition SBExpressionOptions.cpp:260 lldb::SBExpressionOptions::GetAutoApplyFixIts bool GetAutoApplyFixIts() Definition SBExpressionOptions.cpp:223 lldb::SBExpressionOptions::SetTrapExceptions void SetTrapExceptions(bool trap_exceptions=true) Definition SBExpressionOptions.cpp:149 lldb::SBExpressionOptions::GetStopOthers bool GetStopOthers() const Definition SBExpressionOptions.cpp:131 lldb::SBExpressionOptions::SetTimeoutInMicroSeconds void SetTimeoutInMicroSeconds(uint32_t timeout=0) Definition SBExpressionOptions.cpp:96 lldb::SBExpressionOptions::SetStopOthers void SetStopOthers(bool stop_others=true) Definition SBExpressionOptions.cpp:137 lldb::SBExpressionOptions::GetSuppressPersistentResult bool GetSuppressPersistentResult() Definition SBExpressio
The rest of this page is on the live site.