[Lldb-commits] [lldb] r170729 - /lldb/trunk/source/Commands/CommandObjectType.cpp

Jim Ingham jingham at apple.com
Thu Dec 20 12:08:17 PST 2012


Author: jingham
Date: Thu Dec 20 14:08:17 2012
New Revision: 170729

URL: http://llvm.org/viewvc/llvm-project?rev=170729&view=rev
Log:
If we can't find the python function for a given summary, print the name of the function in the warning message.

Modified:
    lldb/trunk/source/Commands/CommandObjectType.cpp

Modified: lldb/trunk/source/Commands/CommandObjectType.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectType.cpp?rev=170729&r1=170728&r2=170729&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectType.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectType.cpp Thu Dec 20 14:08:17 2012
@@ -1054,7 +1054,9 @@
         ScriptInterpreter *interpreter = m_interpreter.GetScriptInterpreter();
         
         if (interpreter && interpreter->CheckObjectExists(funct_name) == false)
-            result.AppendWarning("The provided function does not exist - please define it before attempting to use this summary");
+            result.AppendWarningWithFormat("The provided function \"%s\" does not exist - "
+                                           "please define it before attempting to use this summary.\n",
+                                           funct_name);
     }
     else if (!m_options.m_python_script.empty()) // we have a quick 1-line script, just use it
     {





More information about the lldb-commits mailing list