blob: cd9d9287bd22f90bf83a8f41ad5d8f19e50d5dfd [file] [log] [blame]
Enrico Granatae85e84a2014-10-01 20:43:45 +00001//===-- SWIG Interface for SBExecutionContext ---------------------*- 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
10namespace lldb {
11
12class SBExecutionContext
13{
14public:
15 SBExecutionContext();
16
17 SBExecutionContext (const lldb::SBExecutionContext &rhs);
18
19 SBExecutionContext (const lldb::SBTarget &target);
20
21 SBExecutionContext (const lldb::SBProcess &process);
22
23 SBExecutionContext (lldb::SBThread thread); // can't be a const& because SBThread::get() isn't itself a const function
24
25 SBExecutionContext (const lldb::SBFrame &frame);
26
27 ~SBExecutionContext();
28
29 SBTarget
30 GetTarget () const;
31
32 SBProcess
33 GetProcess () const;
34
35 SBThread
36 GetThread () const;
37
38 SBFrame
39 GetFrame () const;
Enrico Granatae3476572015-04-21 22:09:12 +000040
41 %pythoncode %{
42 __swig_getmethods__["target"] = GetTarget
43 if _newclass: target = property(GetTarget, None, doc='''A read only property that returns the same result as GetTarget().''')
44
45 __swig_getmethods__["process"] = GetProcess
46 if _newclass: process = property(GetProcess, None, doc='''A read only property that returns the same result as GetProcess().''')
47
48 __swig_getmethods__["thread"] = GetThread
49 if _newclass: thread = property(GetThread, None, doc='''A read only property that returns the same result as GetThread().''')
50
51 __swig_getmethods__["frame"] = GetFrame
52 if _newclass: frame = property(GetFrame, None, doc='''A read only property that returns the same result as GetFrame().''')
53 %}
54
Enrico Granatae85e84a2014-10-01 20:43:45 +000055};
56
57} // namespace lldb