diff options
author | Enrico Granata <egranata@apple.com> | 2014-10-01 20:43:45 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-10-01 20:43:45 +0000 |
commit | e85e84a769bbe6ed747b42fbceb5286d2616a683 (patch) | |
tree | 3349eca8596a1108181d87affc086ead8e08a7f6 /lldb/scripts/Python/interface | |
parent | bbbdb9f0ee1d3197d5473b5e9ef54c2cebd67324 (diff) | |
download | bcm5719-llvm-e85e84a769bbe6ed747b42fbceb5286d2616a683.tar.gz bcm5719-llvm-e85e84a769bbe6ed747b42fbceb5286d2616a683.zip |
Add a new SBExecutionContext class that wraps an ExecutionContextRef. This class is a convenient way at the API level to package a target,process,thread and frame all together - or just a subset of those
llvm-svn: 218808
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBExecutionContext.i | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBExecutionContext.i b/lldb/scripts/Python/interface/SBExecutionContext.i new file mode 100644 index 00000000000..d138398e6f9 --- /dev/null +++ b/lldb/scripts/Python/interface/SBExecutionContext.i @@ -0,0 +1,42 @@ +//===-- SWIG Interface for SBExecutionContext ---------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +namespace lldb { + +class SBExecutionContext +{ +public: + SBExecutionContext(); + + SBExecutionContext (const lldb::SBExecutionContext &rhs); + + SBExecutionContext (const lldb::SBTarget &target); + + SBExecutionContext (const lldb::SBProcess &process); + + SBExecutionContext (lldb::SBThread thread); // can't be a const& because SBThread::get() isn't itself a const function + + SBExecutionContext (const lldb::SBFrame &frame); + + ~SBExecutionContext(); + + SBTarget + GetTarget () const; + + SBProcess + GetProcess () const; + + SBThread + GetThread () const; + + SBFrame + GetFrame () const; +}; + +} // namespace lldb |