]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/tools/lldb/include/lldb/API/SBExpressionOptions.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / llvm / tools / lldb / include / lldb / API / SBExpressionOptions.h
1 //===-- SBEvent.h -----------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLDB_SBExpressionOptions_h_
11 #define LLDB_SBExpressionOptions_h_
12
13 #include "lldb/API/SBDefines.h"
14
15 #include <vector>
16
17 namespace lldb {
18
19
20 class SBExpressionOptions
21 {
22 public:
23     SBExpressionOptions();
24
25     SBExpressionOptions (const lldb::SBExpressionOptions &rhs);
26     
27     ~SBExpressionOptions();
28
29     const SBExpressionOptions &
30     operator = (const lldb::SBExpressionOptions &rhs);
31
32     bool
33     GetCoerceResultToId () const;
34     
35     void
36     SetCoerceResultToId (bool coerce = true);
37     
38     bool
39     GetUnwindOnError () const;
40     
41     void
42     SetUnwindOnError (bool unwind = true);
43     
44     bool
45     GetIgnoreBreakpoints () const;
46     
47     void
48     SetIgnoreBreakpoints (bool ignore = true);
49     
50     lldb::DynamicValueType
51     GetFetchDynamicValue () const;
52     
53     void
54     SetFetchDynamicValue (lldb::DynamicValueType dynamic = lldb::eDynamicCanRunTarget);
55     
56     uint32_t
57     GetTimeoutInMicroSeconds () const;
58     
59     void
60     SetTimeoutInMicroSeconds (uint32_t timeout = 0);
61     
62     bool
63     GetTryAllThreads () const;
64     
65     void
66     SetTryAllThreads (bool run_others = true);
67
68     bool
69     GetTrapExceptions () const;
70     
71     void
72     SetTrapExceptions (bool trap_exceptions = true);
73
74 protected:
75
76     SBExpressionOptions (lldb_private::EvaluateExpressionOptions &expression_options);
77
78     lldb_private::EvaluateExpressionOptions *
79     get () const;
80
81     lldb_private::EvaluateExpressionOptions &
82     ref () const;
83
84     friend class SBFrame;
85     friend class SBValue;
86     friend class SBTarget;
87
88 private:
89     // This auto_pointer is made in the constructor and is always valid.
90     mutable std::unique_ptr<lldb_private::EvaluateExpressionOptions> m_opaque_ap;
91 };
92
93 } // namespace lldb
94
95 #endif  // LLDB_SBExpressionOptions_h_