summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-03-25 22:40:51 +0000
committerGreg Clayton <gclayton@apple.com>2013-03-25 22:40:51 +0000
commit4d8ad55c782f7e4e43a72e62d55b48cca57acbf6 (patch)
treec458075309987db8d23f4ff0efbecec3f65e71eb /lldb/scripts/Python/interface
parentcd3d440b827cb47e16e9ada47cf58948d8a1df34 (diff)
downloadbcm5719-llvm-4d8ad55c782f7e4e43a72e62d55b48cca57acbf6.tar.gz
bcm5719-llvm-4d8ad55c782f7e4e43a72e62d55b48cca57acbf6.zip
Modified patch from Prabhat Verma to enable loading core files through the SBTarget API.
llvm-svn: 177932
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r--lldb/scripts/Python/interface/SBTarget.i20
1 files changed, 20 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud