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