Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:54

0001 //===-- Runtime.h -----------------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_TARGET_RUNTIME_H
0010 #define LLDB_TARGET_RUNTIME_H
0011 
0012 #include "lldb/Target/Process.h"
0013 
0014 namespace lldb_private {
0015 class Runtime {
0016 public:
0017   Runtime(Process *process) : m_process(process) {}
0018   virtual ~Runtime() = default;
0019   Runtime(const Runtime &) = delete;
0020   const Runtime &operator=(const Runtime &) = delete;
0021 
0022   Process *GetProcess() { return m_process; }
0023   Target &GetTargetRef() { return m_process->GetTarget(); }
0024 
0025   /// Called when modules have been loaded in the process.
0026   virtual void ModulesDidLoad(const ModuleList &module_list) = 0;
0027 
0028 protected:
0029   Process *m_process;
0030 };
0031 } // namespace lldb_private
0032 
0033 #endif // LLDB_TARGET_RUNTIME_H