]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - scripts/interface/SBExecutionContext.i
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / scripts / interface / SBExecutionContext.i
1 //===-- 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
10 namespace lldb {
11     
12 class SBExecutionContext
13 {
14 public:
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;
40     
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
55 };
56     
57 } // namespace lldb