LLDB  mainline
DynamicLoaderStatic.h
Go to the documentation of this file.
1 //===-- DynamicLoaderStatic.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_SOURCE_PLUGINS_DYNAMICLOADER_STATIC_DYNAMICLOADERSTATIC_H
10 #define LLDB_SOURCE_PLUGINS_DYNAMICLOADER_STATIC_DYNAMICLOADERSTATIC_H
11 
13 #include "lldb/Target/Process.h"
14 #include "lldb/Utility/FileSpec.h"
15 #include "lldb/Utility/UUID.h"
16 
18 public:
20 
21  // Static Functions
22  static void Initialize();
23 
24  static void Terminate();
25 
27 
28  static const char *GetPluginDescriptionStatic();
29 
31  CreateInstance(lldb_private::Process *process, bool force);
32 
33  /// Called after attaching a process.
34  ///
35  /// Allow DynamicLoader plug-ins to execute some code after
36  /// attaching to a process.
37  void DidAttach() override;
38 
39  void DidLaunch() override;
40 
41  lldb::ThreadPlanSP GetStepThroughTrampolinePlan(lldb_private::Thread &thread,
42  bool stop_others) override;
43 
45 
46  // PluginInterface protocol
48 
49  uint32_t GetPluginVersion() override;
50 
51 private:
53 };
54 
55 #endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_STATIC_DYNAMICLOADERSTATIC_H
UUID.h
DynamicLoaderStatic::LoadAllImagesAtFileAddresses
void LoadAllImagesAtFileAddresses()
Definition: DynamicLoaderStatic.cpp:79
lldb_private::Process
Definition: Process.h:342
DynamicLoaderStatic::CanLoadImage
lldb_private::Status CanLoadImage() override
Ask if it is ok to try and load or unload an shared library (image).
Definition: DynamicLoaderStatic.cpp:140
Process.h
DynamicLoaderStatic::DidLaunch
void DidLaunch() override
Called after attaching a process.
Definition: DynamicLoaderStatic.cpp:77
lldb_private::Thread
Definition: Thread.h:62
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::DynamicLoader
Definition: DynamicLoader.h:52
DynamicLoaderStatic::DidAttach
void DidAttach() override
Called after attaching a process.
Definition: DynamicLoaderStatic.cpp:71
DynamicLoaderStatic::GetStepThroughTrampolinePlan
lldb::ThreadPlanSP GetStepThroughTrampolinePlan(lldb_private::Thread &thread, bool stop_others) override
Provides a plan to step through the dynamic loader trampoline for the current state of thread.
Definition: DynamicLoaderStatic.cpp:135
DynamicLoaderStatic::GetPluginNameStatic
static lldb_private::ConstString GetPluginNameStatic()
Definition: DynamicLoaderStatic.cpp:155
lldb_private::Status
Definition: Status.h:44
DynamicLoaderStatic::CreateInstance
static lldb_private::DynamicLoader * CreateInstance(lldb_private::Process *process, bool force)
Definition: DynamicLoaderStatic.cpp:26
uint32_t
DynamicLoaderStatic
Definition: DynamicLoaderStatic.h:17
FileSpec.h
DynamicLoaderStatic::GetPluginName
lldb_private::ConstString GetPluginName() override
Definition: DynamicLoaderStatic.cpp:166
DynamicLoaderStatic::Initialize
static void Initialize()
Definition: DynamicLoaderStatic.cpp:146
DynamicLoaderStatic::DynamicLoaderStatic
DynamicLoaderStatic(lldb_private::Process *process)
Definition: DynamicLoaderStatic.cpp:64
DynamicLoaderStatic::GetPluginDescriptionStatic
static const char * GetPluginDescriptionStatic()
Definition: DynamicLoaderStatic.cpp:160
DynamicLoaderStatic::Terminate
static void Terminate()
Definition: DynamicLoaderStatic.cpp:151
DynamicLoader.h
DynamicLoaderStatic::GetPluginVersion
uint32_t GetPluginVersion() override
Definition: DynamicLoaderStatic.cpp:170