lldb-private-interfaces.h revision 395fc33dc4b06c048ed35047ec461bc092ef2df3
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_interfaces_h_ 11#define liblldb_lldb_interfaces_h_ 12 13#if defined(__cplusplus) 14 15#include "lldb/lldb-private.h" 16 17namespace lldb_private 18{ 19 typedef ABI* (*ABICreateInstance) (const ArchSpec &arch); 20 typedef Disassembler* (*DisassemblerCreateInstance) (const ArchSpec &arch); 21 typedef DynamicLoader* (*DynamicLoaderCreateInstance) (Process* process); 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); 26 typedef LanguageRuntime *(*LanguageRuntimeCreateInstance) (Process *process, lldb::LanguageType language); 27 typedef Process* (*ProcessCreateInstance) (Target &target, Listener &listener); 28 typedef SymbolFile* (*SymbolFileCreateInstance) (ObjectFile* obj_file); 29 typedef SymbolVendor* (*SymbolVendorCreateInstance) (Module *module); // Module can be NULL for default system symbol vendor 30 typedef bool (*BreakpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id); 31 typedef bool (*WatchpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t watch_id, uint32_t type); 32 typedef ThreadPlan * (*ThreadPlanShouldStopHereCallback) (ThreadPlan *current_plan, Flags &flags, void *baton); 33 typedef UnwindAssemblyProfiler* (*UnwindAssemblyProfilerCreateInstance) (const ArchSpec &arch); 34 typedef ArchDefaultUnwindPlan* (*ArchDefaultUnwindPlanCreateInstance) (const ArchSpec &arch); 35 typedef ArchVolatileRegs* (*ArchVolatileRegsCreateInstance) (const ArchSpec &arch); 36} // namespace lldb_private 37 38#endif // #if defined(__cplusplus) 39 40#endif // liblldb_lldb_interfaces_h_ 41