[Lldb-commits] [lldb] r114267 - /lldb/trunk/source/Commands/CommandObjectFrame.cpp

Greg Clayton gclayton at apple.com
Fri Sep 17 21:06:15 PDT 2010


Author: gclayton
Date: Fri Sep 17 23:06:15 2010
New Revision: 114267

URL: http://llvm.org/viewvc/llvm-project?rev=114267&view=rev
Log:
Added a better error message to the "frame variable" when you try to view
frame variables and are not stopped in a valid frame.


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

Modified: lldb/trunk/source/Commands/CommandObjectFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectFrame.cpp?rev=114267&r1=114266&r2=114267&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectFrame.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectFrame.cpp Fri Sep 17 23:06:15 2010
@@ -442,7 +442,7 @@
         ExecutionContext exe_ctx(m_interpreter.GetDebugger().GetExecutionContext());
         if (exe_ctx.frame == NULL)
         {
-            result.AppendError ("invalid frame");
+            result.AppendError ("you must be stopped in a valid stack frame to view frame variables.");
             result.SetStatus (eReturnStatusFailed);
             return false;
         }





More information about the lldb-commits mailing list