From 4d8ad55c782f7e4e43a72e62d55b48cca57acbf6 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 25 Mar 2013 22:40:51 +0000 Subject: Modified patch from Prabhat Verma to enable loading core files through the SBTarget API. llvm-svn: 177932 --- lldb/scripts/Python/interface/SBTarget.i | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lldb/scripts/Python') diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i index 8f9ea2ee639..b60a8dba84f 100644 --- a/lldb/scripts/Python/interface/SBTarget.i +++ b/lldb/scripts/Python/interface/SBTarget.i @@ -389,6 +389,26 @@ public: 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); -- cgit v1.2.3