summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-06-13 00:54:12 +0000
committerGreg Clayton <gclayton@apple.com>2014-06-13 00:54:12 +0000
commita2715cf108d1fc433ffd76102998dbc470720103 (patch)
tree07af7321b88e0be9ca48eaa51a2d47aed7485ac9 /lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
parent454d374e37ebebf7a2746093d8543197516b95d0 (diff)
downloadbcm5719-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/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h')
-rw-r--r--lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
index 7b09e5f8bdd..64a4c054fea 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
@@ -65,6 +65,11 @@ public:
lldb_private::ModuleSpecList &specs);
static bool
+ SaveCore (const lldb::ProcessSP &process_sp,
+ const lldb_private::FileSpec &outfile,
+ lldb_private::Error &error);
+
+ static bool
MagicBytesMatch (lldb::DataBufferSP& data_sp,
lldb::addr_t offset,
lldb::addr_t length);
OpenPOWER on IntegriCloud