]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/bindings/interface/SBCommandInterpreterRunOptions.i
MFV r368464:
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / bindings / interface / SBCommandInterpreterRunOptions.i
1 //===-- SWIG Interface for SBCommandInterpreter -----------------*- 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 namespace lldb {
10
11 %feature("docstring",
12 "SBCommandInterpreterRunOptions controls how the RunCommandInterpreter runs the code it is fed.
13 A default SBCommandInterpreterRunOptions object has:
14     StopOnContinue: false
15     StopOnError:    false
16     StopOnCrash:    false
17     EchoCommands:   true
18     PrintResults:   true
19     AddToHistory:   true
20
21 ") SBCommandInterpreterRunOptions;
22 class SBCommandInterpreterRunOptions
23 {
24 friend class SBDebugger;
25 public:
26     SBCommandInterpreterRunOptions();
27     ~SBCommandInterpreterRunOptions();
28
29     bool
30     GetStopOnContinue () const;
31
32     void
33     SetStopOnContinue (bool);
34
35     bool
36     GetStopOnError () const;
37
38     void
39     SetStopOnError (bool);
40
41     bool
42     GetStopOnCrash () const;
43
44     void
45     SetStopOnCrash (bool);
46
47     bool
48     GetEchoCommands () const;
49
50     void
51     SetEchoCommands (bool);
52
53     bool
54     GetPrintResults () const;
55
56     void
57     SetPrintResults (bool);
58
59     bool
60     GetAddToHistory () const;
61
62     void
63     SetAddToHistory (bool);
64 private:
65     lldb_private::CommandInterpreterRunOptions *
66     get () const;
67
68     lldb_private::CommandInterpreterRunOptions &
69     ref () const;
70
71     // This is set in the constructor and will always be valid.
72     mutable std::unique_ptr<lldb_private::CommandInterpreterRunOptions> m_opaque_up;
73 };
74
75 } // namespace lldb