diff options
author | Greg Clayton <gclayton@apple.com> | 2014-06-13 00:54:12 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-06-13 00:54:12 +0000 |
commit | a2715cf108d1fc433ffd76102998dbc470720103 (patch) | |
tree | 07af7321b88e0be9ca48eaa51a2d47aed7485ac9 /lldb/include/lldb/lldb-private-interfaces.h | |
parent | 454d374e37ebebf7a2746093d8543197516b95d0 (diff) | |
download | bcm5719-llvm-a2715cf108d1fc433ffd76102998dbc470720103.tar.gz bcm5719-llvm-a2715cf108d1fc433ffd76102998dbc470720103.zip |
Added the ability to save core files:
(lldb) file /bin/ls
(lldb) b malloc
(lldb) run
(lldb) process save-core /tmp/ls.core
Each ObjectFile plug-in now has the option to save core files by registering a new static callback.
llvm-svn: 210864
Diffstat (limited to 'lldb/include/lldb/lldb-private-interfaces.h')
-rw-r--r-- | lldb/include/lldb/lldb-private-interfaces.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/include/lldb/lldb-private-interfaces.h b/lldb/include/lldb/lldb-private-interfaces.h index 2f05d771555..e6c89ab2ed1 100644 --- a/lldb/include/lldb/lldb-private-interfaces.h +++ b/lldb/include/lldb/lldb-private-interfaces.h @@ -24,6 +24,7 @@ namespace lldb_private 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); 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); typedef ObjectFile* (*ObjectFileCreateMemoryInstance) (const lldb::ModuleSP &module_sp, lldb::DataBufferSP& data_sp, const lldb::ProcessSP &process_sp, lldb::addr_t offset); + typedef bool (*ObjectFileSaveCore) (const lldb::ProcessSP &process_sp, const FileSpec &outfile, Error &error); typedef LogChannel* (*LogChannelCreateInstance) (); typedef EmulateInstruction * (*EmulateInstructionCreateInstance) (const ArchSpec &arch, InstructionType inst_type); typedef OperatingSystem* (*OperatingSystemCreateInstance) (Process *process, bool force); |