LLDB
mainline
llvm-project
lldb
include
lldb
API
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
18
namespace
lldb
{
19
20
class
LLDB_API
SBExecutionContext
{
21
friend
class
SBCommandInterpreter
;
22
23
public
:
24
SBExecutionContext
();
25
26
SBExecutionContext
(
const
lldb::SBExecutionContext
&rhs);
27
28
SBExecutionContext
(lldb::ExecutionContextRefSP exe_ctx_ref_sp);
29
30
SBExecutionContext
(
const
lldb::SBTarget
&target);
31
32
SBExecutionContext
(
const
lldb::SBProcess
&process);
33
34
SBExecutionContext
(
lldb::SBThread
thread);
// can't be a const& because
35
// SBThread::get() isn't itself a
36
// const function
37
38
SBExecutionContext
(
const
lldb::SBFrame
&frame);
39
40
~
SBExecutionContext
();
41
42
const
SBExecutionContext
&operator=(
const
lldb::SBExecutionContext
&rhs);
43
44
SBTarget
GetTarget()
const
;
45
46
SBProcess
GetProcess()
const
;
47
48
SBThread
GetThread()
const
;
49
50
SBFrame
GetFrame()
const
;
51
52
protected
:
53
lldb_private::ExecutionContextRef
*get()
const
;
54
55
private
:
56
mutable
lldb::ExecutionContextRefSP
m_exe_ctx_sp
;
57
};
58
59
}
// namespace lldb
60
61
#endif // LLDB_API_SBEXECUTIONCONTEXT_H
lldb::SBThread
Definition:
SBThread.h:20
SBDefines.h
lldb::SBCommandInterpreter
Definition:
SBCommandInterpreter.h:19
lldb::SBProcess
Definition:
SBProcess.h:23
lldb::SBExecutionContext::m_exe_ctx_sp
lldb::ExecutionContextRefSP m_exe_ctx_sp
Definition:
SBExecutionContext.h:56
lldb::SBExecutionContext
Definition:
SBExecutionContext.h:20
lldb::SBTarget
Definition:
SBTarget.h:29
lldb::SBFrame
Definition:
SBFrame.h:17
lldb::SBExecutionContext
class LLDB_API SBExecutionContext
Definition:
SBDefines.h:55
lldb
Definition:
SBAddress.h:15
lldb_private::ExecutionContextRef
Execution context objects refer to objects in the execution of the program that is being debugged.
Definition:
ExecutionContext.h:72
LLDB_API
#define LLDB_API
Definition:
SBDefines.h:26
Generated on Mon Jul 4 2022 12:50:59 for LLDB by
1.8.17