From 2ea43cdcabc87264c54eb3e487e43889c5f906f8 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 13 May 2013 17:03:52 +0000 Subject: 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 --- lldb/source/Commands/CommandObjectTarget.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/source/Commands/CommandObjectTarget.cpp') diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 0ad802d7a084..5d3de8df991e 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); -- cgit v1.2.3