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