LLDB mainline
SBExecutionContext.h
Go to the documentation of this file.
1//===-- SBExecutionContext.h -----------------------------------------*- C++
2//-*-===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLDB_API_SBEXECUTIONCONTEXT_H
11#define LLDB_API_SBEXECUTIONCONTEXT_H
12
13#include "lldb/API/SBDefines.h"
14
15#include <cstdio>
16#include <vector>
17
18namespace lldb_private {
20namespace python {
21class SWIGBridge;
22}
23} // namespace lldb_private
24
25namespace lldb {
26
29
30public:
32
34
36
37 SBExecutionContext(const lldb::SBProcess &process);
38
39 SBExecutionContext(lldb::SBThread thread); // can't be a const& because
40 // SBThread::get() isn't itself a
41 // const function
42
44
46
48
49 SBTarget GetTarget() const;
50
51 SBProcess GetProcess() const;
52
53 SBThread GetThread() const;
54
55 SBFrame GetFrame() const;
56
57protected:
58 friend class SBInstructionList;
59 friend class lldb_private::python::SWIGBridge;
61
63
65
66private:
68};
69
70} // namespace lldb
71
72#endif // LLDB_API_SBEXECUTIONCONTEXT_H
#define LLDB_API
Definition SBDefines.h:28
lldb_private::ExecutionContextRef * get() const
const SBExecutionContext & operator=(const lldb::SBExecutionContext &rhs)
lldb::ExecutionContextRefSP m_exe_ctx_sp
Execution context objects refer to objects in the execution of the program that is being debugged.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ExecutionContextRef > ExecutionContextRefSP