1 //===-- SBEvent.h -----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBExpressionOptions_h_
11 #define LLDB_SBExpressionOptions_h_
13 #include "lldb/API/SBDefines.h"
20 class SBExpressionOptions
23 SBExpressionOptions();
25 SBExpressionOptions (const lldb::SBExpressionOptions &rhs);
27 ~SBExpressionOptions();
29 const SBExpressionOptions &
30 operator = (const lldb::SBExpressionOptions &rhs);
33 GetCoerceResultToId () const;
36 SetCoerceResultToId (bool coerce = true);
39 GetUnwindOnError () const;
42 SetUnwindOnError (bool unwind = true);
45 GetIgnoreBreakpoints () const;
48 SetIgnoreBreakpoints (bool ignore = true);
50 lldb::DynamicValueType
51 GetFetchDynamicValue () const;
54 SetFetchDynamicValue (lldb::DynamicValueType dynamic = lldb::eDynamicCanRunTarget);
57 GetTimeoutInMicroSeconds () const;
60 SetTimeoutInMicroSeconds (uint32_t timeout = 0);
63 GetTryAllThreads () const;
66 SetTryAllThreads (bool run_others = true);
69 GetTrapExceptions () const;
72 SetTrapExceptions (bool trap_exceptions = true);
76 SBExpressionOptions (lldb_private::EvaluateExpressionOptions &expression_options);
78 lldb_private::EvaluateExpressionOptions *
81 lldb_private::EvaluateExpressionOptions &
86 friend class SBTarget;
89 // This auto_pointer is made in the constructor and is always valid.
90 mutable std::unique_ptr<lldb_private::EvaluateExpressionOptions> m_opaque_ap;
95 #endif // LLDB_SBExpressionOptions_h_