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-private.h" 16 17#include <set> 18 19namespace lldb_private 20{ 21 typedef lldb::ABISP (*ABICreateInstance) (const ArchSpec &arch); 22 typedef Disassembler* (*DisassemblerCreateInstance) (const ArchSpec &arch, const char *flavor); 23 typedef DynamicLoader* (*DynamicLoaderCreateInstance) (Process* process, bool force); 24 typedef lldb::JITLoaderSP (*JITLoaderCreateInstance) (Process *process, bool force); 25 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); 26 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); 27 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); 28 typedef ObjectFile* (*ObjectFileCreateMemoryInstance) (const lldb::ModuleSP &module_sp, lldb::DataBufferSP& data_sp, const lldb::ProcessSP &process_sp, lldb::addr_t offset); 29 typedef bool (*ObjectFileSaveCore) (const lldb::ProcessSP &process_sp, const FileSpec &outfile, Error &error); 30 typedef LogChannel* (*LogChannelCreateInstance) (); 31 typedef EmulateInstruction * (*EmulateInstructionCreateInstance) (const ArchSpec &arch, InstructionType inst_type); 32 typedef OperatingSystem* (*OperatingSystemCreateInstance) (Process *process, bool force); 33 typedef Language *(*LanguageCreateInstance) (lldb::LanguageType language); 34 typedef LanguageRuntime *(*LanguageRuntimeCreateInstance) (Process *process, lldb::LanguageType language); 35 typedef lldb::CommandObjectSP (*LanguageRuntimeGetCommandObject) (CommandInterpreter& interpreter); 36 typedef SystemRuntime *(*SystemRuntimeCreateInstance) (Process *process); 37 typedef lldb::PlatformSP (*PlatformCreateInstance) (bool force, const ArchSpec *arch); 38 typedef lldb::ProcessSP (*ProcessCreateInstance) (lldb::TargetSP target_sp, Listener &listener, const FileSpec *crash_file_path); 39 typedef lldb::ScriptInterpreterSP (*ScriptInterpreterCreateInstance)(CommandInterpreter &interpreter); 40 typedef SymbolFile* (*SymbolFileCreateInstance) (ObjectFile* obj_file); 41 typedef SymbolVendor* (*SymbolVendorCreateInstance) (const lldb::ModuleSP &module_sp, lldb_private::Stream *feedback_strm); // Module can be NULL for default system symbol vendor 42 typedef bool (*BreakpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id); 43 typedef bool (*WatchpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t watch_id); 44 typedef void (*OptionValueChangedCallback) (void *baton, OptionValue *option_value); 45 typedef bool (*ThreadPlanShouldStopHereCallback) (ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation, void *baton); 46 typedef lldb::ThreadPlanSP (*ThreadPlanStepFromHereCallback) (ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation, void *baton); 47 typedef UnwindAssembly* (*UnwindAssemblyCreateInstance) (const ArchSpec &arch); 48 typedef lldb::MemoryHistorySP (*MemoryHistoryCreateInstance) (const lldb::ProcessSP &process_sp); 49 typedef lldb::InstrumentationRuntimeType (*InstrumentationRuntimeGetType) (); 50 typedef lldb::InstrumentationRuntimeSP (*InstrumentationRuntimeCreateInstance) (const lldb::ProcessSP &process_sp); 51 typedef lldb::TypeSystemSP (*TypeSystemCreateInstance) (lldb::LanguageType language, Module *module, Target *target); 52 typedef lldb::REPLSP (*REPLCreateInstance) (Error &error, lldb::LanguageType language, Debugger *debugger, Target *target, const char *repl_options); 53 typedef void (*TypeSystemEnumerateSupportedLanguages) (std::set<lldb::LanguageType> &languages_for_types, std::set<lldb::LanguageType> &languages_for_expressions); 54 typedef void (*REPLEnumerateSupportedLanguages) (std::set<lldb::LanguageType> &languages); 55 typedef int (*ComparisonFunction)(const void *, const void *); 56 typedef void (*DebuggerInitializeCallback)(Debugger &debugger); 57 58} // namespace lldb_private 59 60#endif // #if defined(__cplusplus) 61 62#endif // liblldb_lldb_private_interfaces_h_ 63