Modified patch from Prabhat Verma to enable loading core files through the SBTarget API.
llvm-svn: 177932
diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i
index 8f9ea2e..b60a8db 100644
--- a/lldb/scripts/Python/interface/SBTarget.i
+++ b/lldb/scripts/Python/interface/SBTarget.i
@@ -389,6 +389,26 @@
lldb::SBProcess
Launch (lldb::SBLaunchInfo &launch_info, lldb::SBError& error);
+
+ %feature("docstring", "
+ //------------------------------------------------------------------
+ /// Load a core file
+ ///
+ /// @param[in] core_file
+ /// File path of the core dump.
+ ///
+ /// @return
+ /// A process object for the newly created core file.
+ //------------------------------------------------------------------
+
+ For example,
+
+ process = target.LoadCore('./a.out.core')
+
+ loads a new core file and returns the process object.
+ ") LoadCore;
+ lldb::SBProcess
+ LoadCore(const char *core_file);
lldb::SBProcess
Attach (lldb::SBAttachInfo &attach_info, lldb::SBError& error);