lldb-private-interfaces.h revision 37f962e785be99dc4f0c5e9d02416992ff03bbd0
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 17namespace lldb_private 18{ 19 typedef lldb::ABISP (*ABICreateInstance) (const ArchSpec &arch); 20 typedef Disassembler* (*DisassemblerCreateInstance) (const ArchSpec &arch); 21 typedef DynamicLoader* (*DynamicLoaderCreateInstance) (Process* process, bool force); 22 typedef ObjectContainer* (*ObjectContainerCreateInstance) (Module* module, lldb::DataBufferSP& dataSP, const FileSpec *file, lldb::addr_t offset, lldb::addr_t length); 23 typedef ObjectFile* (*ObjectFileCreateInstance) (Module* module, lldb::DataBufferSP& dataSP, const FileSpec* file, lldb::addr_t offset, lldb::addr_t length); 24 typedef LogChannel* (*LogChannelCreateInstance) (); 25 typedef EmulateInstruction * (*EmulateInstructionCreateInstance) (const ArchSpec &arch, InstructionType inst_type); 26 typedef OperatingSystem* (*OperatingSystemCreateInstance) (Process *process, bool force); 27 typedef LanguageRuntime *(*LanguageRuntimeCreateInstance) (Process *process, lldb::LanguageType language); 28 typedef Platform* (*PlatformCreateInstance) (); 29 typedef Process* (*ProcessCreateInstance) (Target &target, Listener &listener); 30 typedef SymbolFile* (*SymbolFileCreateInstance) (ObjectFile* obj_file); 31 typedef SymbolVendor* (*SymbolVendorCreateInstance) (Module *module); // Module can be NULL for default system symbol vendor 32 typedef bool (*BreakpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id); 33 typedef bool (*WatchpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t watch_id, uint32_t type); 34 typedef ThreadPlan * (*ThreadPlanShouldStopHereCallback) (ThreadPlan *current_plan, Flags &flags, void *baton); 35 typedef UnwindAssembly* (*UnwindAssemblyCreateInstance) (const ArchSpec &arch); 36 typedef int (*ComparisonFunction)(const void *, const void *); 37 38} // namespace lldb_private 39 40#endif // #if defined(__cplusplus) 41 42#endif // liblldb_lldb_private_interfaces_h_ 43