1 //===-- lldb-private-interfaces.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_lldb_private_interfaces_h_
11 #define liblldb_lldb_private_interfaces_h_
13 #if defined(__cplusplus)
15 #include "lldb/lldb-private.h"
17 namespace lldb_private
19 typedef lldb::ABISP (*ABICreateInstance) (const ArchSpec &arch);
20 typedef Disassembler* (*DisassemblerCreateInstance) (const ArchSpec &arch, const char *flavor);
21 typedef DynamicLoader* (*DynamicLoaderCreateInstance) (Process* process, bool force);
22 typedef lldb::JITLoaderSP (*JITLoaderCreateInstance) (Process *process, bool force);
23 typedef ObjectContainer* (*ObjectContainerCreateInstance) (const lldb::ModuleSP &module_sp, lldb::DataBufferSP& data_sp, lldb::offset_t data_offset, const FileSpec *file, lldb::offset_t offset, lldb::offset_t length);
24 typedef size_t (*ObjectFileGetModuleSpecifications) (const FileSpec &file, lldb::DataBufferSP& data_sp, lldb::offset_t data_offset, lldb::offset_t file_offset, lldb::offset_t length, ModuleSpecList &module_specs);
25 typedef ObjectFile* (*ObjectFileCreateInstance) (const lldb::ModuleSP &module_sp, lldb::DataBufferSP& data_sp, lldb::offset_t data_offset, const FileSpec* file, lldb::offset_t file_offset, lldb::offset_t length);
26 typedef ObjectFile* (*ObjectFileCreateMemoryInstance) (const lldb::ModuleSP &module_sp, lldb::DataBufferSP& data_sp, const lldb::ProcessSP &process_sp, lldb::addr_t offset);
27 typedef bool (*ObjectFileSaveCore) (const lldb::ProcessSP &process_sp, const FileSpec &outfile, Error &error);
28 typedef LogChannel* (*LogChannelCreateInstance) ();
29 typedef EmulateInstruction * (*EmulateInstructionCreateInstance) (const ArchSpec &arch, InstructionType inst_type);
30 typedef OperatingSystem* (*OperatingSystemCreateInstance) (Process *process, bool force);
31 typedef LanguageRuntime *(*LanguageRuntimeCreateInstance) (Process *process, lldb::LanguageType language);
32 typedef SystemRuntime *(*SystemRuntimeCreateInstance) (Process *process);
33 typedef lldb::PlatformSP (*PlatformCreateInstance) (bool force, const ArchSpec *arch);
34 typedef lldb::ProcessSP (*ProcessCreateInstance) (Target &target, Listener &listener, const FileSpec *crash_file_path);
35 typedef SymbolFile* (*SymbolFileCreateInstance) (ObjectFile* obj_file);
36 typedef SymbolVendor* (*SymbolVendorCreateInstance) (const lldb::ModuleSP &module_sp, lldb_private::Stream *feedback_strm); // Module can be NULL for default system symbol vendor
37 typedef bool (*BreakpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id);
38 typedef bool (*WatchpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t watch_id);
39 typedef void (*OptionValueChangedCallback) (void *baton, OptionValue *option_value);
40 typedef bool (*ThreadPlanShouldStopHereCallback) (ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation, void *baton);
41 typedef lldb::ThreadPlanSP (*ThreadPlanStepFromHereCallback) (ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation, void *baton);
42 typedef UnwindAssembly* (*UnwindAssemblyCreateInstance) (const ArchSpec &arch);
43 typedef lldb::MemoryHistorySP (*MemoryHistoryCreateInstance) (const lldb::ProcessSP &process_sp);
44 typedef lldb::InstrumentationRuntimeType (*InstrumentationRuntimeGetType) ();
45 typedef lldb::InstrumentationRuntimeSP (*InstrumentationRuntimeCreateInstance) (const lldb::ProcessSP &process_sp);
46 typedef int (*ComparisonFunction)(const void *, const void *);
47 typedef void (*DebuggerInitializeCallback)(Debugger &debugger);
49 } // namespace lldb_private
51 #endif // #if defined(__cplusplus)
53 #endif // liblldb_lldb_private_interfaces_h_