<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 1, 2014, at 2:36 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com" class="">chandlerc@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">This broke the CMake build and all the bots using it. Are you working on a fix?</div></div></blockquote><div><br class=""></div><div>I didn’t receive any notification that the bots are broken - so I honestly can’t say I am working on a fix for a problem I am not aware of</div><div>I am aware of it now that you mention it, of course, and yes we should fix it</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""> I will revert if not.</div></div></blockquote><div><br class=""></div><div>If all that is needed is adding the files to the CMake.txt files I can easily do it</div><div>If not, I will probably need a log of the failure to work on</div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Oct 1, 2014 at 1:43 PM, Enrico Granata <span dir="ltr" class=""><<a href="mailto:egranata@apple.com" target="_blank" class="">egranata@apple.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: enrico<br class="">
Date: Wed Oct  1 15:43:45 2014<br class="">
New Revision: 218808<br class="">
<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=218808&view=rev" target="_blank" class="">http://llvm.org/viewvc/llvm-project?rev=218808&view=rev</a><br class="">
Log:<br class="">
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<br class="">
<br class="">
Added:<br class="">
    lldb/trunk/include/lldb/API/SBExecutionContext.h<br class="">
    lldb/trunk/scripts/Python/interface/SBExecutionContext.i<br class="">
    lldb/trunk/source/API/SBExecutionContext.cpp<br class="">
Modified:<br class="">
    lldb/trunk/include/lldb/API/LLDB.h<br class="">
    lldb/trunk/include/lldb/API/SBDefines.h<br class="">
    lldb/trunk/include/lldb/API/SBFrame.h<br class="">
    lldb/trunk/include/lldb/API/SBProcess.h<br class="">
    lldb/trunk/include/lldb/API/SBTarget.h<br class="">
    lldb/trunk/include/lldb/API/SBThread.h<br class="">
    lldb/trunk/lldb.xcodeproj/project.pbxproj<br class="">
    lldb/trunk/scripts/Python/build-swig-Python.sh<br class="">
    lldb/trunk/scripts/lldb.swig<br class="">
<br class="">
Modified: lldb/trunk/include/lldb/API/LLDB.h<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/LLDB.h?rev=218808&r1=218807&r2=218808&view=diff" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/LLDB.h?rev=218808&r1=218807&r2=218808&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/include/lldb/API/LLDB.h (original)<br class="">
+++ lldb/trunk/include/lldb/API/LLDB.h Wed Oct  1 15:43:45 2014<br class="">
@@ -29,6 +29,7 @@<br class="">
 #include "lldb/API/SBDeclaration.h"<br class="">
 #include "lldb/API/SBError.h"<br class="">
 #include "lldb/API/SBEvent.h"<br class="">
+#include "lldb/API/SBExecutionContext.h"<br class="">
 #include "lldb/API/SBFileSpec.h"<br class="">
 #include "lldb/API/SBFrame.h"<br class="">
 #include "lldb/API/SBFunction.h"<br class="">
<br class="">
Modified: lldb/trunk/include/lldb/API/SBDefines.h<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBDefines.h?rev=218808&r1=218807&r2=218808&view=diff" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBDefines.h?rev=218808&r1=218807&r2=218808&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/include/lldb/API/SBDefines.h (original)<br class="">
+++ lldb/trunk/include/lldb/API/SBDefines.h Wed Oct  1 15:43:45 2014<br class="">
@@ -45,6 +45,7 @@ class LLDB_API SBDeclaration;<br class="">
 class LLDB_API SBError;<br class="">
 class LLDB_API SBEvent;<br class="">
 class LLDB_API SBEventList;<br class="">
+class LLDB_API SBExecutionContext;<br class="">
 class LLDB_API SBExpressionOptions;<br class="">
 class LLDB_API SBFileSpec;<br class="">
 class LLDB_API SBFileSpecList;<br class="">
<br class="">
Added: lldb/trunk/include/lldb/API/SBExecutionContext.h<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBExecutionContext.h?rev=218808&view=auto" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBExecutionContext.h?rev=218808&view=auto</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/include/lldb/API/SBExecutionContext.h (added)<br class="">
+++ lldb/trunk/include/lldb/API/SBExecutionContext.h Wed Oct  1 15:43:45 2014<br class="">
@@ -0,0 +1,70 @@<br class="">
+//===-- SBExecutionContext.h -----------------------------------------*- C++ -*-===//<br class="">
+//<br class="">
+//                     The LLVM Compiler Infrastructure<br class="">
+//<br class="">
+// This file is distributed under the University of Illinois Open Source<br class="">
+// License. See LICENSE.TXT for details.<br class="">
+//<br class="">
+//===----------------------------------------------------------------------===//<br class="">
+<br class="">
+#ifndef LLDB_SBExecutionContext_h_<br class="">
+#define LLDB_SBExecutionContext_h_<br class="">
+<br class="">
+#include "lldb/API/SBDefines.h"<br class="">
+<br class="">
+#include <stdio.h><br class="">
+#include <vector><br class="">
+<br class="">
+<br class="">
+namespace lldb {<br class="">
+<br class="">
+class SBExecutionContext<br class="">
+{<br class="">
+public:<br class="">
+    SBExecutionContext();<br class="">
+<br class="">
+    SBExecutionContext (const lldb::SBExecutionContext &rhs);<br class="">
+<br class="">
+    SBExecutionContext (const lldb::SBTarget &target);<br class="">
+<br class="">
+    SBExecutionContext (const lldb::SBProcess &process);<br class="">
+<br class="">
+    SBExecutionContext (lldb::SBThread thread); // can't be a const& because SBThread::get() isn't itself a const function<br class="">
+<br class="">
+    SBExecutionContext (const lldb::SBFrame &frame);<br class="">
+<br class="">
+    ~SBExecutionContext();<br class="">
+<br class="">
+    const SBExecutionContext &<br class="">
+    operator = (const lldb::SBExecutionContext &rhs);<br class="">
+<br class="">
+    SBTarget<br class="">
+    GetTarget () const;<br class="">
+<br class="">
+    SBProcess<br class="">
+    GetProcess () const;<br class="">
+<br class="">
+    SBThread<br class="">
+    GetThread () const;<br class="">
+<br class="">
+    SBFrame<br class="">
+    GetFrame () const;<br class="">
+<br class="">
+protected:<br class="">
+    ExecutionContextRefSP &<br class="">
+    GetSP () const;<br class="">
+<br class="">
+    void<br class="">
+    reset (lldb::ExecutionContextRefSP &event_sp);<br class="">
+<br class="">
+    lldb_private::ExecutionContextRef *<br class="">
+    get () const;<br class="">
+<br class="">
+private:<br class="">
+<br class="">
+    mutable lldb::ExecutionContextRefSP m_exe_ctx_sp;<br class="">
+};<br class="">
+<br class="">
+} // namespace lldb<br class="">
+<br class="">
+#endif  // LLDB_SBExecutionContext_h_<br class="">
<br class="">
Modified: lldb/trunk/include/lldb/API/SBFrame.h<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBFrame.h?rev=218808&r1=218807&r2=218808&view=diff" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBFrame.h?rev=218808&r1=218807&r2=218808&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/include/lldb/API/SBFrame.h (original)<br class="">
+++ lldb/trunk/include/lldb/API/SBFrame.h Wed Oct  1 15:43:45 2014<br class="">
@@ -206,6 +206,7 @@ public:<br class="">
 protected:<br class="">
<br class="">
     friend class SBBlock;<br class="">
+    friend class SBExecutionContext;<br class="">
     friend class SBInstruction;<br class="">
     friend class SBThread;<br class="">
     friend class SBValue;<br class="">
<br class="">
Modified: lldb/trunk/include/lldb/API/SBProcess.h<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBProcess.h?rev=218808&r1=218807&r2=218808&view=diff" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBProcess.h?rev=218808&r1=218807&r2=218808&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/include/lldb/API/SBProcess.h (original)<br class="">
+++ lldb/trunk/include/lldb/API/SBProcess.h Wed Oct  1 15:43:45 2014<br class="">
@@ -326,6 +326,7 @@ protected:<br class="">
     friend class SBBreakpointLocation;<br class="">
     friend class SBCommandInterpreter;<br class="">
     friend class SBDebugger;<br class="">
+    friend class SBExecutionContext;<br class="">
     friend class SBFunction;<br class="">
     friend class SBModule;<br class="">
     friend class SBTarget;<br class="">
<br class="">
Modified: lldb/trunk/include/lldb/API/SBTarget.h<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBTarget.h?rev=218808&r1=218807&r2=218808&view=diff" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBTarget.h?rev=218808&r1=218807&r2=218808&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/include/lldb/API/SBTarget.h (original)<br class="">
+++ lldb/trunk/include/lldb/API/SBTarget.h Wed Oct  1 15:43:45 2014<br class="">
@@ -933,6 +933,7 @@ protected:<br class="">
     friend class SBAddress;<br class="">
     friend class SBBlock;<br class="">
     friend class SBDebugger;<br class="">
+    friend class SBExecutionContext;<br class="">
     friend class SBFunction;<br class="">
     friend class SBInstruction;<br class="">
     friend class SBModule;<br class="">
<br class="">
Modified: lldb/trunk/include/lldb/API/SBThread.h<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBThread.h?rev=218808&r1=218807&r2=218808&view=diff" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBThread.h?rev=218808&r1=218807&r2=218808&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/include/lldb/API/SBThread.h (original)<br class="">
+++ lldb/trunk/include/lldb/API/SBThread.h Wed Oct  1 15:43:45 2014<br class="">
@@ -231,6 +231,7 @@ public:<br class="">
 protected:<br class="">
     friend class SBBreakpoint;<br class="">
     friend class SBBreakpointLocation;<br class="">
+    friend class SBExecutionContext;<br class="">
     friend class SBFrame;<br class="">
     friend class SBProcess;<br class="">
     friend class SBDebugger;<br class="">
<br class="">
Modified: lldb/trunk/lldb.xcodeproj/project.pbxproj<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/lldb.xcodeproj/project.pbxproj?rev=218808&r1=218807&r2=218808&view=diff" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/lldb.xcodeproj/project.pbxproj?rev=218808&r1=218807&r2=218808&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/lldb.xcodeproj/project.pbxproj (original)<br class="">
+++ lldb/trunk/lldb.xcodeproj/project.pbxproj Wed Oct  1 15:43:45 2014<br class="">
@@ -639,6 +639,7 @@<br class="">
                8CCB018219BA4E270009FD44 /* SBThreadCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 8CCB018119BA4E210009FD44 /* SBThreadCollection.h */; settings = {ATTRIBUTES = (Public, ); }; };<br class="">
                8CCB018319BA51BF0009FD44 /* SBThreadCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8CCB017F19BA4DD00009FD44 /* SBThreadCollection.cpp */; };<br class="">
                94094C6B163B6F840083A547 /* ValueObjectCast.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 94094C69163B6CD90083A547 /* ValueObjectCast.cpp */; };<br class="">
+               940B02F619DC96E700AD0F52 /* SBExecutionContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 940B02F519DC96E700AD0F52 /* SBExecutionContext.cpp */; };<br class="">
                94145431175E63B500284436 /* lldb-versioning.h in Headers */ = {isa = PBXBuildFile; fileRef = 94145430175D7FDE00284436 /* lldb-versioning.h */; settings = {ATTRIBUTES = (Public, ); }; };<br class="">
                941BCC7F14E48C4000BB969C /* SBTypeFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = 9461568614E355F2003A195C /* SBTypeFilter.h */; settings = {ATTRIBUTES = (Public, ); }; };<br class="">
                941BCC8014E48C4000BB969C /* SBTypeFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = 9461568714E355F2003A195C /* SBTypeFormat.h */; settings = {ATTRIBUTES = (Public, ); }; };<br class="">
@@ -1970,6 +1971,9 @@<br class="">
                94031A9F13CF5B3D00DCFF3C /* PriorityPointerPair.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = PriorityPointerPair.h; path = include/lldb/Utility/PriorityPointerPair.h; sourceTree = "<group>"; };<br class="">
                94094C68163B6CCC0083A547 /* ValueObjectCast.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ValueObjectCast.h; path = include/lldb/Core/ValueObjectCast.h; sourceTree = "<group>"; };<br class="">
                94094C69163B6CD90083A547 /* ValueObjectCast.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ValueObjectCast.cpp; path = source/Core/ValueObjectCast.cpp; sourceTree = "<group>"; };<br class="">
+               940B02F419DC96CB00AD0F52 /* SBExecutionContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SBExecutionContext.h; path = include/lldb/API/SBExecutionContext.h; sourceTree = "<group>"; };<br class="">
+               940B02F519DC96E700AD0F52 /* SBExecutionContext.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SBExecutionContext.cpp; path = source/API/SBExecutionContext.cpp; sourceTree = "<group>"; };<br class="">
+               940B02F719DC970900AD0F52 /* SBExecutionContext.i */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c.preprocessed; path = SBExecutionContext.i; sourceTree = "<group>"; };<br class="">
                94145430175D7FDE00284436 /* lldb-versioning.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "lldb-versioning.h"; path = "include/lldb/lldb-versioning.h"; sourceTree = "<group>"; };<br class="">
                94380B8019940B0300BFE4A8 /* StringLexer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = StringLexer.h; path = include/lldb/Utility/StringLexer.h; sourceTree = "<group>"; };<br class="">
                94380B8119940B0A00BFE4A8 /* StringLexer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = StringLexer.cpp; path = source/Utility/StringLexer.cpp; sourceTree = "<group>"; };<br class="">
@@ -2653,6 +2657,7 @@<br class="">
                                9452573616262CD000325455 /* SBDeclaration.i */,<br class="">
                                2611FEFA142D83060017FEA3 /* SBError.i */,<br class="">
                                2611FEFB142D83060017FEA3 /* SBEvent.i */,<br class="">
+                               940B02F719DC970900AD0F52 /* SBExecutionContext.i */,<br class="">
                                2611FEFC142D83060017FEA3 /* SBFileSpec.i */,<br class="">
                                2611FEFD142D83060017FEA3 /* SBFileSpecList.i */,<br class="">
                                2611FEFE142D83060017FEA3 /* SBFrame.i */,<br class="">
@@ -2744,6 +2749,8 @@<br class="">
                                2682F284115EF3A700CCFF99 /* SBError.cpp */,<br class="">
                                9A9830FE1125FC5800A56CB0 /* SBEvent.h */,<br class="">
                                9A9830FD1125FC5800A56CB0 /* SBEvent.cpp */,<br class="">
+                               940B02F419DC96CB00AD0F52 /* SBExecutionContext.h */,<br class="">
+                               940B02F519DC96E700AD0F52 /* SBExecutionContext.cpp */,<br class="">
                                4CE4F672162C971A00F75CB3 /* SBExpressionOptions.h */,<br class="">
                                4CE4F674162C973F00F75CB3 /* SBExpressionOptions.cpp */,<br class="">
                                26022531115F27FA00A601A2 /* SBFileSpec.h */,<br class="">
@@ -4876,6 +4883,7 @@<br class="">
                                9461569B14E358A6003A195C /* SBTypeFormat.cpp in Sources */,<br class="">
                                262F12B51835468600AEB384 /* SBPlatform.cpp in Sources */,<br class="">
                                9461569C14E358A6003A195C /* SBTypeSummary.cpp in Sources */,<br class="">
+                               940B02F619DC96E700AD0F52 /* SBExecutionContext.cpp in Sources */,<br class="">
                                9461569D14E358A6003A195C /* SBTypeSynthetic.cpp in Sources */,<br class="">
                                26680324116005D9008E1FE4 /* SBThread.cpp in Sources */,<br class="">
                                26680326116005DB008E1FE4 /* SBTarget.cpp in Sources */,<br class="">
<br class="">
Modified: lldb/trunk/scripts/Python/build-swig-Python.sh<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/build-swig-Python.sh?rev=218808&r1=218807&r2=218808&view=diff" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/build-swig-Python.sh?rev=218808&r1=218807&r2=218808&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/scripts/Python/build-swig-Python.sh (original)<br class="">
+++ lldb/trunk/scripts/Python/build-swig-Python.sh Wed Oct  1 15:43:45 2014<br class="">
@@ -91,6 +91,7 @@ HEADER_FILES="${SRC_ROOT}/include/lldb/l<br class="">
 " ${SRC_ROOT}/include/lldb/API/SBDebugger.h"\<br class="">
 " ${SRC_ROOT}/include/lldb/API/SBError.h"\<br class="">
 " ${SRC_ROOT}/include/lldb/API/SBEvent.h"\<br class="">
+" ${SRC_ROOT}/include/lldb/API/SBExecutionContext.h"\<br class="">
 " ${SRC_ROOT}/include/lldb/API/SBExpressionOptions.h"\<br class="">
 " ${SRC_ROOT}/include/lldb/API/SBFileSpec.h"\<br class="">
 " ${SRC_ROOT}/include/lldb/API/SBFrame.h"\<br class="">
@@ -141,6 +142,7 @@ INTERFACE_FILES="${SRC_ROOT}/scripts/Pyt<br class="">
 " ${SRC_ROOT}/scripts/Python/interface/SBDeclaration.i"\<br class="">
 " ${SRC_ROOT}/scripts/Python/interface/SBError.i"\<br class="">
 " ${SRC_ROOT}/scripts/Python/interface/SBEvent.i"\<br class="">
+" ${SRC_ROOT}/scripts/Python/interface/SBExecutionContext.i"\<br class="">
 " ${SRC_ROOT}/scripts/Python/interface/SBExpressionOptions.i"\<br class="">
 " ${SRC_ROOT}/scripts/Python/interface/SBFileSpec.i"\<br class="">
 " ${SRC_ROOT}/scripts/Python/interface/SBFrame.i"\<br class="">
<br class="">
Added: lldb/trunk/scripts/Python/interface/SBExecutionContext.i<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBExecutionContext.i?rev=218808&view=auto" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBExecutionContext.i?rev=218808&view=auto</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/scripts/Python/interface/SBExecutionContext.i (added)<br class="">
+++ lldb/trunk/scripts/Python/interface/SBExecutionContext.i Wed Oct  1 15:43:45 2014<br class="">
@@ -0,0 +1,42 @@<br class="">
+//===-- SWIG Interface for SBExecutionContext ---------------------*- C++ -*-===//<br class="">
+//<br class="">
+//                     The LLVM Compiler Infrastructure<br class="">
+//<br class="">
+// This file is distributed under the University of Illinois Open Source<br class="">
+// License. See LICENSE.TXT for details.<br class="">
+//<br class="">
+//===----------------------------------------------------------------------===//<br class="">
+<br class="">
+namespace lldb {<br class="">
+<br class="">
+class SBExecutionContext<br class="">
+{<br class="">
+public:<br class="">
+    SBExecutionContext();<br class="">
+<br class="">
+    SBExecutionContext (const lldb::SBExecutionContext &rhs);<br class="">
+<br class="">
+    SBExecutionContext (const lldb::SBTarget &target);<br class="">
+<br class="">
+    SBExecutionContext (const lldb::SBProcess &process);<br class="">
+<br class="">
+    SBExecutionContext (lldb::SBThread thread); // can't be a const& because SBThread::get() isn't itself a const function<br class="">
+<br class="">
+    SBExecutionContext (const lldb::SBFrame &frame);<br class="">
+<br class="">
+    ~SBExecutionContext();<br class="">
+<br class="">
+    SBTarget<br class="">
+    GetTarget () const;<br class="">
+<br class="">
+    SBProcess<br class="">
+    GetProcess () const;<br class="">
+<br class="">
+    SBThread<br class="">
+    GetThread () const;<br class="">
+<br class="">
+    SBFrame<br class="">
+    GetFrame () const;<br class="">
+};<br class="">
+<br class="">
+} // namespace lldb<br class="">
<br class="">
Modified: lldb/trunk/scripts/lldb.swig<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/lldb.swig?rev=218808&r1=218807&r2=218808&view=diff" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/lldb.swig?rev=218808&r1=218807&r2=218808&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/scripts/lldb.swig (original)<br class="">
+++ lldb/trunk/scripts/lldb.swig Wed Oct  1 15:43:45 2014<br class="">
@@ -66,6 +66,7 @@ import os<br class="">
 #include "lldb/API/SBDeclaration.h"<br class="">
 #include "lldb/API/SBError.h"<br class="">
 #include "lldb/API/SBEvent.h"<br class="">
+#include "lldb/API/SBExecutionContext.h"<br class="">
 #include "lldb/API/SBExpressionOptions.h"<br class="">
 #include "lldb/API/SBFileSpec.h"<br class="">
 #include "lldb/API/SBFileSpecList.h"<br class="">
@@ -139,6 +140,7 @@ import os<br class="">
 %include "./Python/interface/SBDeclaration.i"<br class="">
 %include "./Python/interface/SBError.i"<br class="">
 %include "./Python/interface/SBEvent.i"<br class="">
+%include "./Python/interface/SBExecutionContext.i"<br class="">
 %include "./Python/interface/SBExpressionOptions.i"<br class="">
 %include "./Python/interface/SBFileSpec.i"<br class="">
 %include "./Python/interface/SBFileSpecList.i"<br class="">
<br class="">
Added: lldb/trunk/source/API/SBExecutionContext.cpp<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBExecutionContext.cpp?rev=218808&view=auto" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBExecutionContext.cpp?rev=218808&view=auto</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/source/API/SBExecutionContext.cpp (added)<br class="">
+++ lldb/trunk/source/API/SBExecutionContext.cpp Wed Oct  1 15:43:45 2014<br class="">
@@ -0,0 +1,118 @@<br class="">
+//===-- SBExecutionContext.cpp ------------------------------------*- C++ -*-===//<br class="">
+//<br class="">
+//                     The LLVM Compiler Infrastructure<br class="">
+//<br class="">
+// This file is distributed under the University of Illinois Open Source<br class="">
+// License. See LICENSE.TXT for details.<br class="">
+//<br class="">
+//===----------------------------------------------------------------------===//<br class="">
+<br class="">
+#include "lldb/API/SBExecutionContext.h"<br class="">
+<br class="">
+#include "lldb/API/SBTarget.h"<br class="">
+#include "lldb/API/SBProcess.h"<br class="">
+#include "lldb/API/SBThread.h"<br class="">
+#include "lldb/API/SBFrame.h"<br class="">
+<br class="">
+#include "lldb/Target/ExecutionContext.h"<br class="">
+<br class="">
+using namespace lldb;<br class="">
+using namespace lldb_private;<br class="">
+<br class="">
+SBExecutionContext::SBExecutionContext() :<br class="">
+m_exe_ctx_sp()<br class="">
+{<br class="">
+}<br class="">
+<br class="">
+SBExecutionContext::SBExecutionContext (const lldb::SBExecutionContext &rhs) :<br class="">
+m_exe_ctx_sp(rhs.m_exe_ctx_sp)<br class="">
+{<br class="">
+}<br class="">
+<br class="">
+SBExecutionContext::SBExecutionContext (const lldb::SBTarget &target) :<br class="">
+m_exe_ctx_sp(new ExecutionContextRef())<br class="">
+{<br class="">
+    m_exe_ctx_sp->SetTargetSP(target.GetSP());<br class="">
+}<br class="">
+<br class="">
+SBExecutionContext::SBExecutionContext (const lldb::SBProcess &process) :<br class="">
+m_exe_ctx_sp(new ExecutionContextRef())<br class="">
+{<br class="">
+    m_exe_ctx_sp->SetProcessSP(process.GetSP());<br class="">
+}<br class="">
+<br class="">
+SBExecutionContext::SBExecutionContext (lldb::SBThread thread) :<br class="">
+m_exe_ctx_sp(new ExecutionContextRef())<br class="">
+{<br class="">
+    m_exe_ctx_sp->SetThreadPtr(thread.get());<br class="">
+}<br class="">
+<br class="">
+SBExecutionContext::SBExecutionContext (const lldb::SBFrame &frame) :<br class="">
+m_exe_ctx_sp(new ExecutionContextRef())<br class="">
+{<br class="">
+    m_exe_ctx_sp->SetFrameSP(frame.GetFrameSP());<br class="">
+}<br class="">
+<br class="">
+SBExecutionContext::~SBExecutionContext()<br class="">
+{<br class="">
+}<br class="">
+<br class="">
+const SBExecutionContext &<br class="">
+SBExecutionContext::operator = (const lldb::SBExecutionContext &rhs)<br class="">
+{<br class="">
+    m_exe_ctx_sp = rhs.m_exe_ctx_sp;<br class="">
+    return *this;<br class="">
+}<br class="">
+<br class="">
+SBTarget<br class="">
+SBExecutionContext::GetTarget () const<br class="">
+{<br class="">
+    SBTarget sb_target;<br class="">
+    if (m_exe_ctx_sp)<br class="">
+    {<br class="">
+        TargetSP target_sp(m_exe_ctx_sp->GetTargetSP());<br class="">
+        if (target_sp)<br class="">
+            sb_target.SetSP(target_sp);<br class="">
+    }<br class="">
+    return sb_target;<br class="">
+}<br class="">
+<br class="">
+SBProcess<br class="">
+SBExecutionContext::GetProcess () const<br class="">
+{<br class="">
+    SBProcess sb_process;<br class="">
+    if (m_exe_ctx_sp)<br class="">
+    {<br class="">
+        ProcessSP process_sp(m_exe_ctx_sp->GetProcessSP());<br class="">
+        if (process_sp)<br class="">
+            sb_process.SetSP(process_sp);<br class="">
+    }<br class="">
+    return sb_process;<br class="">
+}<br class="">
+<br class="">
+SBThread<br class="">
+SBExecutionContext::GetThread () const<br class="">
+{<br class="">
+    SBThread sb_thread;<br class="">
+    if (m_exe_ctx_sp)<br class="">
+    {<br class="">
+        ThreadSP thread_sp(m_exe_ctx_sp->GetThreadSP());<br class="">
+        if (thread_sp)<br class="">
+            sb_thread.SetThread(thread_sp);<br class="">
+    }<br class="">
+    return sb_thread;<br class="">
+}<br class="">
+<br class="">
+SBFrame<br class="">
+SBExecutionContext::GetFrame () const<br class="">
+{<br class="">
+    SBFrame sb_frame;<br class="">
+    if (m_exe_ctx_sp)<br class="">
+    {<br class="">
+        StackFrameSP frame_sp(m_exe_ctx_sp->GetFrameSP());<br class="">
+        if (frame_sp)<br class="">
+            sb_frame.SetFrameSP(frame_sp);<br class="">
+    }<br class="">
+    return sb_frame;<br class="">
+}<br class="">
+<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
lldb-commits mailing list<br class="">
<a href="mailto:lldb-commits@cs.uiuc.edu" class="">lldb-commits@cs.uiuc.edu</a><br class="">
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank" class="">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Thanks,</div><div class=""><i class="">- Enrico</i><br class="">📩 egranata@<font color="#ff2600" class=""></font>.com ☎️ 27683</div><div class=""><br class=""></div></div></div></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></body></html>