summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2014-10-01 20:43:45 +0000
committerEnrico Granata <egranata@apple.com>2014-10-01 20:43:45 +0000
commite85e84a769bbe6ed747b42fbceb5286d2616a683 (patch)
tree3349eca8596a1108181d87affc086ead8e08a7f6 /lldb/scripts/Python/interface
parentbbbdb9f0ee1d3197d5473b5e9ef54c2cebd67324 (diff)
downloadbcm5719-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.i42
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
OpenPOWER on IntegriCloud