]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/tools/lldb/include/lldb/lldb-private-interfaces.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / llvm / tools / lldb / include / lldb / lldb-private-interfaces.h
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 namespace lldb_private
18 {
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 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);
23     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);
24     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);
25     typedef ObjectFile* (*ObjectFileCreateMemoryInstance) (const lldb::ModuleSP &module_sp, lldb::DataBufferSP& data_sp, const lldb::ProcessSP &process_sp, lldb::addr_t offset);
26     typedef LogChannel* (*LogChannelCreateInstance) ();
27     typedef EmulateInstruction * (*EmulateInstructionCreateInstance) (const ArchSpec &arch, InstructionType inst_type);
28     typedef OperatingSystem* (*OperatingSystemCreateInstance) (Process *process, bool force);
29     typedef LanguageRuntime *(*LanguageRuntimeCreateInstance) (Process *process, lldb::LanguageType language);
30     typedef SystemRuntime *(*SystemRuntimeCreateInstance) (Process *process);
31     typedef Platform* (*PlatformCreateInstance) (bool force, const ArchSpec *arch);
32     typedef lldb::ProcessSP (*ProcessCreateInstance) (Target &target, Listener &listener, const FileSpec *crash_file_path);
33     typedef SymbolFile* (*SymbolFileCreateInstance) (ObjectFile* obj_file);
34     typedef SymbolVendor* (*SymbolVendorCreateInstance) (const lldb::ModuleSP &module_sp, lldb_private::Stream *feedback_strm);   // Module can be NULL for default system symbol vendor
35     typedef bool (*BreakpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id);
36     typedef bool (*WatchpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t watch_id);
37     typedef lldb::ThreadPlanSP (*ThreadPlanShouldStopHereCallback) (ThreadPlan *current_plan, Flags &flags, void *baton);
38     typedef UnwindAssembly* (*UnwindAssemblyCreateInstance) (const ArchSpec &arch);
39     typedef int (*ComparisonFunction)(const void *, const void *);
40     typedef bool (*CommandOverrideCallback)(void *baton, const char **argv);
41     typedef void (*DebuggerInitializeCallback)(Debugger &debugger);
42
43 } // namespace lldb_private
44
45 #endif  // #if defined(__cplusplus)
46
47 #endif  // liblldb_lldb_private_interfaces_h_