1 //===-- SBExecutionContext.h -----------------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef LLDB_SBExecutionContext_h_
12 #define LLDB_SBExecutionContext_h_
14 #include "lldb/API/SBDefines.h"
21 class LLDB_API SBExecutionContext {
22 friend class SBCommandInterpreter;
27 SBExecutionContext(const lldb::SBExecutionContext &rhs);
29 SBExecutionContext(lldb::ExecutionContextRefSP exe_ctx_ref_sp);
31 SBExecutionContext(const lldb::SBTarget &target);
33 SBExecutionContext(const lldb::SBProcess &process);
35 SBExecutionContext(lldb::SBThread thread); // can't be a const& because
36 // SBThread::get() isn't itself a
39 SBExecutionContext(const lldb::SBFrame &frame);
41 ~SBExecutionContext();
43 const SBExecutionContext &operator=(const lldb::SBExecutionContext &rhs);
45 SBTarget GetTarget() const;
47 SBProcess GetProcess() const;
49 SBThread GetThread() const;
51 SBFrame GetFrame() const;
54 ExecutionContextRefSP &GetSP() const;
56 void reset(lldb::ExecutionContextRefSP &event_sp);
58 lldb_private::ExecutionContextRef *get() const;
61 mutable lldb::ExecutionContextRefSP m_exe_ctx_sp;
66 #endif // LLDB_SBExecutionContext_h_