LLDB  mainline
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
lldb_private::EvaluateExpressionOptions Class Reference

#include <Target.h>

Collaboration diagram for lldb_private::EvaluateExpressionOptions:
Collaboration graph
[legend]

Public Member Functions

 EvaluateExpressionOptions ()=default
 
ExecutionPolicy GetExecutionPolicy () const
 
void SetExecutionPolicy (ExecutionPolicy policy=eExecutionPolicyAlways)
 
lldb::LanguageType GetLanguage () const
 
void SetLanguage (lldb::LanguageType language)
 
bool DoesCoerceToId () const
 
const char * GetPrefix () const
 
void SetPrefix (const char *prefix)
 
void SetCoerceToId (bool coerce=true)
 
bool DoesUnwindOnError () const
 
void SetUnwindOnError (bool unwind=false)
 
bool DoesIgnoreBreakpoints () const
 
void SetIgnoreBreakpoints (bool ignore=false)
 
bool DoesKeepInMemory () const
 
void SetKeepInMemory (bool keep=true)
 
lldb::DynamicValueType GetUseDynamic () const
 
void SetUseDynamic (lldb::DynamicValueType dynamic=lldb::eDynamicCanRunTarget)
 
const Timeout< std::micro > & GetTimeout () const
 
void SetTimeout (const Timeout< std::micro > &timeout)
 
const Timeout< std::micro > & GetOneThreadTimeout () const
 
void SetOneThreadTimeout (const Timeout< std::micro > &timeout)
 
bool GetTryAllThreads () const
 
void SetTryAllThreads (bool try_others=true)
 
bool GetStopOthers () const
 
void SetStopOthers (bool stop_others=true)
 
bool GetDebug () const
 
void SetDebug (bool b)
 
bool GetGenerateDebugInfo () const
 
void SetGenerateDebugInfo (bool b)
 
bool GetColorizeErrors () const
 
void SetColorizeErrors (bool b)
 
bool GetTrapExceptions () const
 
void SetTrapExceptions (bool b)
 
bool GetREPLEnabled () const
 
void SetREPLEnabled (bool b)
 
void SetCancelCallback (lldb::ExpressionCancelCallback callback, void *baton)
 
bool InvokeCancelCallback (lldb::ExpressionEvaluationPhase phase) const
 
void SetPoundLine (const char *path, uint32_t line) const
 
const char * GetPoundLineFilePath () const
 
uint32_t GetPoundLineLine () const
 
void SetResultIsInternal (bool b)
 
bool GetResultIsInternal () const
 
void SetAutoApplyFixIts (bool b)
 
bool GetAutoApplyFixIts () const
 
void SetRetriesWithFixIts (uint64_t number_of_retries)
 
uint64_t GetRetriesWithFixIts () const
 
bool IsForUtilityExpr () const
 
void SetIsForUtilityExpr (bool b)
 

Static Public Attributes

static constexpr std::chrono::milliseconds default_timeout {500}
 
static constexpr ExecutionPolicy default_execution_policy
 

Private Attributes

ExecutionPolicy m_execution_policy = default_execution_policy
 
lldb::LanguageType m_language = lldb::eLanguageTypeUnknown
 
std::string m_prefix
 
bool m_coerce_to_id = false
 
bool m_unwind_on_error = true
 
bool m_ignore_breakpoints = false
 
bool m_keep_in_memory = false
 
bool m_try_others = true
 
bool m_stop_others = true
 
bool m_debug = false
 
bool m_trap_exceptions = true
 
bool m_repl = false
 
bool m_generate_debug_info = false
 
bool m_ansi_color_errors = false
 
bool m_result_is_internal = false
 
bool m_auto_apply_fixits = true
 
uint64_t m_retries_with_fixits = 1
 
bool m_running_utility_expression = false
 True if the executed code should be treated as utility code that is only used by LLDB internally. More...
 
lldb::DynamicValueType m_use_dynamic = lldb::eNoDynamicValues
 
Timeout< std::micro > m_timeout = default_timeout
 
Timeout< std::micro > m_one_thread_timeout = llvm::None
 
lldb::ExpressionCancelCallback m_cancel_callback = nullptr
 
void * m_cancel_callback_baton = nullptr
 
std::string m_pound_line_file
 
uint32_t m_pound_line_line
 

Detailed Description

Definition at line 262 of file Target.h.

Constructor & Destructor Documentation

◆ EvaluateExpressionOptions()

lldb_private::EvaluateExpressionOptions::EvaluateExpressionOptions ( )
default

Member Function Documentation

◆ DoesCoerceToId()

bool lldb_private::EvaluateExpressionOptions::DoesCoerceToId ( ) const
inline

Definition at line 292 of file Target.h.

References m_coerce_to_id.

Referenced by lldb_private::UserExpression::Evaluate().

◆ DoesIgnoreBreakpoints()

bool lldb_private::EvaluateExpressionOptions::DoesIgnoreBreakpoints ( ) const
inline

◆ DoesKeepInMemory()

bool lldb_private::EvaluateExpressionOptions::DoesKeepInMemory ( ) const
inline

Definition at line 317 of file Target.h.

References m_keep_in_memory.

◆ DoesUnwindOnError()

bool lldb_private::EvaluateExpressionOptions::DoesUnwindOnError ( ) const
inline

◆ GetAutoApplyFixIts()

bool lldb_private::EvaluateExpressionOptions::GetAutoApplyFixIts ( ) const
inline

Definition at line 407 of file Target.h.

References m_auto_apply_fixits.

Referenced by lldb_private::UserExpression::Evaluate().

◆ GetColorizeErrors()

bool lldb_private::EvaluateExpressionOptions::GetColorizeErrors ( ) const
inline

Definition at line 360 of file Target.h.

References m_ansi_color_errors.

◆ GetDebug()

bool lldb_private::EvaluateExpressionOptions::GetDebug ( ) const
inline

Definition at line 348 of file Target.h.

References m_debug.

Referenced by lldb_private::Process::RunThreadPlan().

◆ GetExecutionPolicy()

ExecutionPolicy lldb_private::EvaluateExpressionOptions::GetExecutionPolicy ( ) const
inline

◆ GetGenerateDebugInfo()

bool lldb_private::EvaluateExpressionOptions::GetGenerateDebugInfo ( ) const
inline

Definition at line 356 of file Target.h.

References m_generate_debug_info.

Referenced by lldb_private::UserExpression::Evaluate().

◆ GetLanguage()

lldb::LanguageType lldb_private::EvaluateExpressionOptions::GetLanguage ( ) const
inline

Definition at line 288 of file Target.h.

References m_language.

Referenced by lldb_private::UserExpression::Evaluate().

◆ GetOneThreadTimeout()

const Timeout<std::micro>& lldb_private::EvaluateExpressionOptions::GetOneThreadTimeout ( ) const
inline

◆ GetPoundLineFilePath()

const char* lldb_private::EvaluateExpressionOptions::GetPoundLineFilePath ( ) const
inline

Definition at line 395 of file Target.h.

References m_pound_line_file.

◆ GetPoundLineLine()

uint32_t lldb_private::EvaluateExpressionOptions::GetPoundLineLine ( ) const
inline

Definition at line 399 of file Target.h.

References m_pound_line_line.

◆ GetPrefix()

const char* lldb_private::EvaluateExpressionOptions::GetPrefix ( ) const
inline

Definition at line 294 of file Target.h.

References m_prefix.

Referenced by lldb_private::UserExpression::Evaluate().

◆ GetREPLEnabled()

bool lldb_private::EvaluateExpressionOptions::GetREPLEnabled ( ) const
inline

Definition at line 368 of file Target.h.

References m_repl.

◆ GetResultIsInternal()

bool lldb_private::EvaluateExpressionOptions::GetResultIsInternal ( ) const
inline

Definition at line 403 of file Target.h.

References m_result_is_internal.

Referenced by lldb_private::UserExpression::Execute().

◆ GetRetriesWithFixIts()

uint64_t lldb_private::EvaluateExpressionOptions::GetRetriesWithFixIts ( ) const
inline

Definition at line 413 of file Target.h.

References m_retries_with_fixits.

Referenced by lldb_private::UserExpression::Evaluate().

◆ GetStopOthers()

bool lldb_private::EvaluateExpressionOptions::GetStopOthers ( ) const
inline

Definition at line 344 of file Target.h.

References m_stop_others.

Referenced by GetExpressionTimeout(), and lldb_private::Process::RunThreadPlan().

◆ GetTimeout()

const Timeout<std::micro>& lldb_private::EvaluateExpressionOptions::GetTimeout ( ) const
inline

◆ GetTrapExceptions()

bool lldb_private::EvaluateExpressionOptions::GetTrapExceptions ( ) const
inline

Definition at line 364 of file Target.h.

References m_trap_exceptions.

◆ GetTryAllThreads()

bool lldb_private::EvaluateExpressionOptions::GetTryAllThreads ( ) const
inline

Definition at line 340 of file Target.h.

References m_try_others.

Referenced by GetExpressionTimeout(), and lldb_private::Process::RunThreadPlan().

◆ GetUseDynamic()

lldb::DynamicValueType lldb_private::EvaluateExpressionOptions::GetUseDynamic ( ) const
inline

Definition at line 321 of file Target.h.

References m_use_dynamic.

◆ InvokeCancelCallback()

bool lldb_private::EvaluateExpressionOptions::InvokeCancelCallback ( lldb::ExpressionEvaluationPhase  phase) const
inline

Definition at line 377 of file Target.h.

References m_cancel_callback, and m_cancel_callback_baton.

Referenced by lldb_private::UserExpression::Evaluate().

◆ IsForUtilityExpr()

bool lldb_private::EvaluateExpressionOptions::IsForUtilityExpr ( ) const
inline

Definition at line 415 of file Target.h.

References m_running_utility_expression.

Referenced by lldb_private::Process::RunThreadPlan().

◆ SetAutoApplyFixIts()

void lldb_private::EvaluateExpressionOptions::SetAutoApplyFixIts ( bool  b)
inline

◆ SetCancelCallback()

void lldb_private::EvaluateExpressionOptions::SetCancelCallback ( lldb::ExpressionCancelCallback  callback,
void *  baton 
)
inline

Definition at line 372 of file Target.h.

References m_cancel_callback, and m_cancel_callback_baton.

◆ SetCoerceToId()

void lldb_private::EvaluateExpressionOptions::SetCoerceToId ( bool  coerce = true)
inline

◆ SetColorizeErrors()

void lldb_private::EvaluateExpressionOptions::SetColorizeErrors ( bool  b)
inline

Definition at line 362 of file Target.h.

References m_ansi_color_errors.

Referenced by lldb_private::REPL::IOHandlerInputComplete().

◆ SetDebug()

void lldb_private::EvaluateExpressionOptions::SetDebug ( bool  b)
inline

◆ SetExecutionPolicy()

void lldb_private::EvaluateExpressionOptions::SetExecutionPolicy ( ExecutionPolicy  policy = eExecutionPolicyAlways)
inline

Definition at line 284 of file Target.h.

References m_execution_policy.

Referenced by PlatformPOSIX::DoLoadImage(), and PlatformPOSIX::EvaluateLibdlExpression().

◆ SetGenerateDebugInfo()

void lldb_private::EvaluateExpressionOptions::SetGenerateDebugInfo ( bool  b)
inline

◆ SetIgnoreBreakpoints()

void lldb_private::EvaluateExpressionOptions::SetIgnoreBreakpoints ( bool  ignore = false)
inline

◆ SetIsForUtilityExpr()

void lldb_private::EvaluateExpressionOptions::SetIsForUtilityExpr ( bool  b)
inline

◆ SetKeepInMemory()

void lldb_private::EvaluateExpressionOptions::SetKeepInMemory ( bool  keep = true)
inline

◆ SetLanguage()

void lldb_private::EvaluateExpressionOptions::SetLanguage ( lldb::LanguageType  language)
inline

◆ SetOneThreadTimeout()

void lldb_private::EvaluateExpressionOptions::SetOneThreadTimeout ( const Timeout< std::micro > &  timeout)
inline

Definition at line 336 of file Target.h.

References m_one_thread_timeout.

◆ SetPoundLine()

void lldb_private::EvaluateExpressionOptions::SetPoundLine ( const char *  path,
uint32_t  line 
) const
inline

Definition at line 385 of file Target.h.

References m_pound_line_file, and m_pound_line_line.

Referenced by lldb_private::REPL::IOHandlerInputComplete().

◆ SetPrefix()

void lldb_private::EvaluateExpressionOptions::SetPrefix ( const char *  prefix)
inline

◆ SetREPLEnabled()

void lldb_private::EvaluateExpressionOptions::SetREPLEnabled ( bool  b)
inline

Definition at line 370 of file Target.h.

References m_repl.

Referenced by lldb_private::REPL::IOHandlerInputComplete().

◆ SetResultIsInternal()

void lldb_private::EvaluateExpressionOptions::SetResultIsInternal ( bool  b)
inline

Definition at line 401 of file Target.h.

References m_result_is_internal.

Referenced by lldb_private::BreakpointLocation::ConditionSaysStop().

◆ SetRetriesWithFixIts()

void lldb_private::EvaluateExpressionOptions::SetRetriesWithFixIts ( uint64_t  number_of_retries)
inline

Definition at line 409 of file Target.h.

References m_retries_with_fixits.

◆ SetStopOthers()

void lldb_private::EvaluateExpressionOptions::SetStopOthers ( bool  stop_others = true)
inline

◆ SetTimeout()

void lldb_private::EvaluateExpressionOptions::SetTimeout ( const Timeout< std::micro > &  timeout)
inline

◆ SetTrapExceptions()

void lldb_private::EvaluateExpressionOptions::SetTrapExceptions ( bool  b)
inline

◆ SetTryAllThreads()

void lldb_private::EvaluateExpressionOptions::SetTryAllThreads ( bool  try_others = true)
inline

◆ SetUnwindOnError()

void lldb_private::EvaluateExpressionOptions::SetUnwindOnError ( bool  unwind = false)
inline

◆ SetUseDynamic()

void lldb_private::EvaluateExpressionOptions::SetUseDynamic ( lldb::DynamicValueType  dynamic = lldb::eDynamicCanRunTarget)
inline

Member Data Documentation

◆ default_execution_policy

constexpr ExecutionPolicy lldb_private::EvaluateExpressionOptions::default_execution_policy
staticconstexpr
Initial value:

Definition at line 277 of file Target.h.

◆ default_timeout

constexpr std::chrono::milliseconds EvaluateExpressionOptions::default_timeout {500}
staticconstexpr

Definition at line 272 of file Target.h.

◆ m_ansi_color_errors

bool lldb_private::EvaluateExpressionOptions::m_ansi_color_errors = false
private

Definition at line 433 of file Target.h.

Referenced by GetColorizeErrors(), and SetColorizeErrors().

◆ m_auto_apply_fixits

bool lldb_private::EvaluateExpressionOptions::m_auto_apply_fixits = true
private

Definition at line 435 of file Target.h.

Referenced by GetAutoApplyFixIts(), and SetAutoApplyFixIts().

◆ m_cancel_callback

lldb::ExpressionCancelCallback lldb_private::EvaluateExpressionOptions::m_cancel_callback = nullptr
private

Definition at line 444 of file Target.h.

Referenced by InvokeCancelCallback(), and SetCancelCallback().

◆ m_cancel_callback_baton

void* lldb_private::EvaluateExpressionOptions::m_cancel_callback_baton = nullptr
private

Definition at line 445 of file Target.h.

Referenced by InvokeCancelCallback(), and SetCancelCallback().

◆ m_coerce_to_id

bool lldb_private::EvaluateExpressionOptions::m_coerce_to_id = false
private

Definition at line 423 of file Target.h.

Referenced by DoesCoerceToId(), and SetCoerceToId().

◆ m_debug

bool lldb_private::EvaluateExpressionOptions::m_debug = false
private

Definition at line 429 of file Target.h.

Referenced by GetDebug(), and SetDebug().

◆ m_execution_policy

ExecutionPolicy lldb_private::EvaluateExpressionOptions::m_execution_policy = default_execution_policy
private

Definition at line 420 of file Target.h.

Referenced by GetExecutionPolicy(), and SetExecutionPolicy().

◆ m_generate_debug_info

bool lldb_private::EvaluateExpressionOptions::m_generate_debug_info = false
private

Definition at line 432 of file Target.h.

Referenced by GetGenerateDebugInfo(), SetDebug(), and SetGenerateDebugInfo().

◆ m_ignore_breakpoints

bool lldb_private::EvaluateExpressionOptions::m_ignore_breakpoints = false
private

Definition at line 425 of file Target.h.

Referenced by DoesIgnoreBreakpoints(), and SetIgnoreBreakpoints().

◆ m_keep_in_memory

bool lldb_private::EvaluateExpressionOptions::m_keep_in_memory = false
private

Definition at line 426 of file Target.h.

Referenced by DoesKeepInMemory(), and SetKeepInMemory().

◆ m_language

lldb::LanguageType lldb_private::EvaluateExpressionOptions::m_language = lldb::eLanguageTypeUnknown
private

Definition at line 421 of file Target.h.

Referenced by GetLanguage(), and SetLanguage().

◆ m_one_thread_timeout

Timeout<std::micro> lldb_private::EvaluateExpressionOptions::m_one_thread_timeout = llvm::None
private

Definition at line 443 of file Target.h.

Referenced by GetOneThreadTimeout(), and SetOneThreadTimeout().

◆ m_pound_line_file

std::string lldb_private::EvaluateExpressionOptions::m_pound_line_file
mutableprivate

Definition at line 449 of file Target.h.

Referenced by GetPoundLineFilePath(), and SetPoundLine().

◆ m_pound_line_line

uint32_t lldb_private::EvaluateExpressionOptions::m_pound_line_line
mutableprivate

Definition at line 450 of file Target.h.

Referenced by GetPoundLineLine(), and SetPoundLine().

◆ m_prefix

std::string lldb_private::EvaluateExpressionOptions::m_prefix
private

Definition at line 422 of file Target.h.

Referenced by GetPrefix(), and SetPrefix().

◆ m_repl

bool lldb_private::EvaluateExpressionOptions::m_repl = false
private

Definition at line 431 of file Target.h.

Referenced by GetREPLEnabled(), and SetREPLEnabled().

◆ m_result_is_internal

bool lldb_private::EvaluateExpressionOptions::m_result_is_internal = false
private

Definition at line 434 of file Target.h.

Referenced by GetResultIsInternal(), and SetResultIsInternal().

◆ m_retries_with_fixits

uint64_t lldb_private::EvaluateExpressionOptions::m_retries_with_fixits = 1
private

Definition at line 436 of file Target.h.

Referenced by GetRetriesWithFixIts(), and SetRetriesWithFixIts().

◆ m_running_utility_expression

bool lldb_private::EvaluateExpressionOptions::m_running_utility_expression = false
private

True if the executed code should be treated as utility code that is only used by LLDB internally.

Definition at line 439 of file Target.h.

Referenced by IsForUtilityExpr(), and SetIsForUtilityExpr().

◆ m_stop_others

bool lldb_private::EvaluateExpressionOptions::m_stop_others = true
private

Definition at line 428 of file Target.h.

Referenced by GetStopOthers(), and SetStopOthers().

◆ m_timeout

Timeout<std::micro> lldb_private::EvaluateExpressionOptions::m_timeout = default_timeout
private

Definition at line 442 of file Target.h.

Referenced by GetTimeout(), and SetTimeout().

◆ m_trap_exceptions

bool lldb_private::EvaluateExpressionOptions::m_trap_exceptions = true
private

Definition at line 430 of file Target.h.

Referenced by GetTrapExceptions(), and SetTrapExceptions().

◆ m_try_others

bool lldb_private::EvaluateExpressionOptions::m_try_others = true
private

Definition at line 427 of file Target.h.

Referenced by GetTryAllThreads(), and SetTryAllThreads().

◆ m_unwind_on_error

bool lldb_private::EvaluateExpressionOptions::m_unwind_on_error = true
private

Definition at line 424 of file Target.h.

Referenced by DoesUnwindOnError(), and SetUnwindOnError().

◆ m_use_dynamic

lldb::DynamicValueType lldb_private::EvaluateExpressionOptions::m_use_dynamic = lldb::eNoDynamicValues
private

Definition at line 441 of file Target.h.

Referenced by GetUseDynamic(), and SetUseDynamic().


The documentation for this class was generated from the following files:
lldb_private::eExecutionPolicyOnlyWhenNeeded
@ eExecutionPolicyOnlyWhenNeeded
Definition: lldb-private-enumerations.h:145