LLDB  mainline
Runtime.h
Go to the documentation of this file.
1 //===-- Runtime.h -----------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_TARGET_RUNTIME_H
10 #define LLDB_TARGET_RUNTIME_H
11 
12 #include "lldb/Target/Process.h"
13 
14 namespace lldb_private {
15 class Runtime {
16 public:
17  Runtime(Process *process) : m_process(process) {}
18  virtual ~Runtime() = default;
19  Runtime(const Runtime &) = delete;
20  const Runtime &operator=(const Runtime &) = delete;
21 
22  Process *GetProcess() { return m_process; }
24 
25  /// Called when modules have been loaded in the process.
26  virtual void ModulesDidLoad(const ModuleList &module_list) = 0;
27 
28 protected:
30 };
31 } // namespace lldb_private
32 
33 #endif // LLDB_TARGET_RUNTIME_H
lldb_private::Runtime::ModulesDidLoad
virtual void ModulesDidLoad(const ModuleList &module_list)=0
Called when modules have been loaded in the process.
lldb_private::Process
Definition: Process.h:342
lldb_private::Process::GetTarget
Target & GetTarget()
Get the target object pointer for this module.
Definition: Process.h:1195
lldb_private::Target
Definition: Target.h:447
Process.h
lldb_private::Runtime::operator=
const Runtime & operator=(const Runtime &)=delete
lldb_private::ModuleList
Definition: ModuleList.h:71
lldb_private::Runtime::m_process
Process * m_process
Definition: Runtime.h:29
lldb_private::Runtime::GetTargetRef
Target & GetTargetRef()
Definition: Runtime.h:23
lldb_private::Runtime
Definition: Runtime.h:15
lldb_private::Runtime::GetProcess
Process * GetProcess()
Definition: Runtime.h:22
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::Runtime::~Runtime
virtual ~Runtime()=default
lldb_private::Runtime::Runtime
Runtime(Process *process)
Definition: Runtime.h:17