1 //===-- SWIG Interface for SBExecutionContext ---------------------*- 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 "Describes the program context in which a command should be executed."
13 ) SBExecutionContext;
14 class SBExecutionContext
15 {
16 public:
17     SBExecutionContext();
18 
19     SBExecutionContext (const lldb::SBExecutionContext &rhs);
20 
21     SBExecutionContext (const lldb::SBTarget &target);
22 
23     SBExecutionContext (const lldb::SBProcess &process);
24 
25     SBExecutionContext (lldb::SBThread thread); // can't be a const& because SBThread::get() isn't itself a const function
26 
27     SBExecutionContext (const lldb::SBFrame &frame);
28 
29     ~SBExecutionContext();
30 
31     SBTarget
32     GetTarget () const;
33 
34     SBProcess
35     GetProcess () const;
36 
37     SBThread
38     GetThread () const;
39 
40     SBFrame
41     GetFrame () const;
42 
43 #ifdef SWIGPYTHON
44     %pythoncode %{
45         target = property(GetTarget, None, doc='''A read only property that returns the same result as GetTarget().''')
46         process = property(GetProcess, None, doc='''A read only property that returns the same result as GetProcess().''')
47         thread = property(GetThread, None, doc='''A read only property that returns the same result as GetThread().''')
48         frame = property(GetFrame, None, doc='''A read only property that returns the same result as GetFrame().''')
49     %}
50 #endif
51 
52 };
53 
54 } // namespace lldb
55