summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-05-13 17:03:52 +0000
committerEnrico Granata <egranata@apple.com>2013-05-13 17:03:52 +0000
commit2ea43cdcabc87264c54eb3e487e43889c5f906f8 (patch)
tree4a195daf210a00a5246feaacb3d6b0c856ab39c2 /lldb/source/Commands/CommandObjectTarget.cpp
parent7b4baa91ce2f98bf49a102e17a7fc91ec00e5789 (diff)
downloadbcm5719-llvm-2ea43cdcabc87264c54eb3e487e43889c5f906f8.tar.gz
bcm5719-llvm-2ea43cdcabc87264c54eb3e487e43889c5f906f8.zip
<rdar://problem/13183720>
Provide a mechanism through which users can disable loading the Python scripts from dSYM files This relies on a target setting: target.load-script-from-symbol-file which defaults to false ("do NOT load the script") You need to set it to true before creating your target (or in your lldbinit file if you constantly rely on this feature) to allow the scripts to load llvm-svn: 181709
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index 0ad802d7a08..5d3de8df991 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -4330,6 +4330,10 @@ protected:
// in the debug info files in case the platform supports that.
Error error;
module_sp->LoadScriptingResourceInTarget (target, error);
+ if (error.Fail())
+ result.AppendWarningWithFormat("unable to load scripting data for module %s - error reported was %s",
+ module_sp->GetFileSpec().GetFileNameStrippingExtension().GetCString(),
+ error.AsCString());
flush = true;
result.SetStatus (eReturnStatusSuccessFinishResult);
OpenPOWER on IntegriCloud