]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/lldb-private-interfaces.h
MFV 331702:
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / lldb-private-interfaces.h
1 //===-- lldb-private-interfaces.h -------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef liblldb_lldb_private_interfaces_h_
11 #define liblldb_lldb_private_interfaces_h_
12
13 #if defined(__cplusplus)
14
15 #include "lldb/lldb-enumerations.h"
16 #include "lldb/lldb-forward.h"
17 #include "lldb/lldb-types.h"
18
19 #include "lldb/lldb-private-enumerations.h"
20
21 #include <set>
22
23 namespace lldb_private {
24 typedef lldb::ABISP (*ABICreateInstance)(lldb::ProcessSP process_sp, const ArchSpec &arch);
25 typedef Disassembler *(*DisassemblerCreateInstance)(const ArchSpec &arch,
26                                                     const char *flavor);
27 typedef DynamicLoader *(*DynamicLoaderCreateInstance)(Process *process,
28                                                       bool force);
29 typedef lldb::JITLoaderSP (*JITLoaderCreateInstance)(Process *process,
30                                                      bool force);
31 typedef ObjectContainer *(*ObjectContainerCreateInstance)(
32     const lldb::ModuleSP &module_sp, lldb::DataBufferSP &data_sp,
33     lldb::offset_t data_offset, const FileSpec *file, lldb::offset_t offset,
34     lldb::offset_t length);
35 typedef size_t (*ObjectFileGetModuleSpecifications)(
36     const FileSpec &file, lldb::DataBufferSP &data_sp,
37     lldb::offset_t data_offset, lldb::offset_t file_offset,
38     lldb::offset_t length, ModuleSpecList &module_specs);
39 typedef ObjectFile *(*ObjectFileCreateInstance)(const lldb::ModuleSP &module_sp,
40                                                 lldb::DataBufferSP &data_sp,
41                                                 lldb::offset_t data_offset,
42                                                 const FileSpec *file,
43                                                 lldb::offset_t file_offset,
44                                                 lldb::offset_t length);
45 typedef ObjectFile *(*ObjectFileCreateMemoryInstance)(
46     const lldb::ModuleSP &module_sp, lldb::DataBufferSP &data_sp,
47     const lldb::ProcessSP &process_sp, lldb::addr_t offset);
48 typedef bool (*ObjectFileSaveCore)(const lldb::ProcessSP &process_sp,
49                                    const FileSpec &outfile, Status &error);
50 typedef EmulateInstruction *(*EmulateInstructionCreateInstance)(
51     const ArchSpec &arch, InstructionType inst_type);
52 typedef OperatingSystem *(*OperatingSystemCreateInstance)(Process *process,
53                                                           bool force);
54 typedef Language *(*LanguageCreateInstance)(lldb::LanguageType language);
55 typedef LanguageRuntime *(*LanguageRuntimeCreateInstance)(
56     Process *process, lldb::LanguageType language);
57 typedef lldb::CommandObjectSP (*LanguageRuntimeGetCommandObject)(
58     CommandInterpreter &interpreter);
59 typedef lldb::StructuredDataPluginSP (*StructuredDataPluginCreateInstance)(
60     Process &process);
61 typedef Status (*StructuredDataFilterLaunchInfo)(ProcessLaunchInfo &launch_info,
62                                                  Target *target);
63 typedef SystemRuntime *(*SystemRuntimeCreateInstance)(Process *process);
64 typedef lldb::PlatformSP (*PlatformCreateInstance)(bool force,
65                                                    const ArchSpec *arch);
66 typedef lldb::ProcessSP (*ProcessCreateInstance)(
67     lldb::TargetSP target_sp, lldb::ListenerSP listener_sp,
68     const FileSpec *crash_file_path);
69 typedef lldb::ScriptInterpreterSP (*ScriptInterpreterCreateInstance)(
70     CommandInterpreter &interpreter);
71 typedef SymbolFile *(*SymbolFileCreateInstance)(ObjectFile *obj_file);
72 typedef SymbolVendor *(*SymbolVendorCreateInstance)(
73     const lldb::ModuleSP &module_sp,
74     lldb_private::Stream
75         *feedback_strm); // Module can be NULL for default system symbol vendor
76 typedef bool (*BreakpointHitCallback)(void *baton,
77                                       StoppointCallbackContext *context,
78                                       lldb::user_id_t break_id,
79                                       lldb::user_id_t break_loc_id);
80 typedef bool (*WatchpointHitCallback)(void *baton,
81                                       StoppointCallbackContext *context,
82                                       lldb::user_id_t watch_id);
83 typedef void (*OptionValueChangedCallback)(void *baton,
84                                            OptionValue *option_value);
85 typedef bool (*ThreadPlanShouldStopHereCallback)(
86     ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation,
87     void *baton);
88 typedef lldb::ThreadPlanSP (*ThreadPlanStepFromHereCallback)(
89     ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation,
90     void *baton);
91 typedef UnwindAssembly *(*UnwindAssemblyCreateInstance)(const ArchSpec &arch);
92 typedef lldb::MemoryHistorySP (*MemoryHistoryCreateInstance)(
93     const lldb::ProcessSP &process_sp);
94 typedef lldb::InstrumentationRuntimeType (*InstrumentationRuntimeGetType)();
95 typedef lldb::InstrumentationRuntimeSP (*InstrumentationRuntimeCreateInstance)(
96     const lldb::ProcessSP &process_sp);
97 typedef lldb::TypeSystemSP (*TypeSystemCreateInstance)(
98     lldb::LanguageType language, Module *module, Target *target);
99 typedef lldb::REPLSP (*REPLCreateInstance)(Status &error,
100                                            lldb::LanguageType language,
101                                            Debugger *debugger, Target *target,
102                                            const char *repl_options);
103 typedef void (*TypeSystemEnumerateSupportedLanguages)(
104     std::set<lldb::LanguageType> &languages_for_types,
105     std::set<lldb::LanguageType> &languages_for_expressions);
106 typedef void (*REPLEnumerateSupportedLanguages)(
107     std::set<lldb::LanguageType> &languages);
108 typedef int (*ComparisonFunction)(const void *, const void *);
109 typedef void (*DebuggerInitializeCallback)(Debugger &debugger);
110
111 } // namespace lldb_private
112
113 #endif // #if defined(__cplusplus)
114
115 #endif // liblldb_lldb_private_interfaces_h_