1 //===-- DynamicLoaderStatic.h -----------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_DynamicLoaderStatic_h_
11 #define liblldb_DynamicLoaderStatic_h_
15 // Other libraries and framework includes
17 #include "lldb/Core/UUID.h"
18 #include "lldb/Host/FileSpec.h"
19 #include "lldb/Target/DynamicLoader.h"
20 #include "lldb/Target/Process.h"
22 class DynamicLoaderStatic : public lldb_private::DynamicLoader {
24 DynamicLoaderStatic(lldb_private::Process *process);
26 ~DynamicLoaderStatic() override;
28 //------------------------------------------------------------------
30 //------------------------------------------------------------------
31 static void Initialize();
33 static void Terminate();
35 static lldb_private::ConstString GetPluginNameStatic();
37 static const char *GetPluginDescriptionStatic();
39 static lldb_private::DynamicLoader *
40 CreateInstance(lldb_private::Process *process, bool force);
42 //------------------------------------------------------------------
43 /// Called after attaching a process.
45 /// Allow DynamicLoader plug-ins to execute some code after
46 /// attaching to a process.
47 //------------------------------------------------------------------
48 void DidAttach() override;
50 void DidLaunch() override;
52 lldb::ThreadPlanSP GetStepThroughTrampolinePlan(lldb_private::Thread &thread,
53 bool stop_others) override;
55 lldb_private::Error CanLoadImage() override;
57 //------------------------------------------------------------------
58 // PluginInterface protocol
59 //------------------------------------------------------------------
60 lldb_private::ConstString GetPluginName() override;
62 uint32_t GetPluginVersion() override;
65 void LoadAllImagesAtFileAddresses();
67 DISALLOW_COPY_AND_ASSIGN(DynamicLoaderStatic);
70 #endif // liblldb_DynamicLoaderStatic_h_