From e85e84a769bbe6ed747b42fbceb5286d2616a683 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 1 Oct 2014 20:43:45 +0000 Subject: 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 --- lldb/scripts/Python/interface/SBExecutionContext.i | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 lldb/scripts/Python/interface/SBExecutionContext.i (limited to 'lldb/scripts/Python/interface') 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 -- cgit v1.2.3