aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-09-18 04:06:15 +0000
committerGreg Clayton <gclayton@apple.com>2010-09-18 04:06:15 +0000
commit340b2baa245df02e8bed5f55cc94a54374d41cd0 (patch)
tree8640a99d695981ae24f8e54c90a96f0c27933d8a /lldb/source/Commands/CommandObjectFrame.cpp
parentf5fb427d8532f69e9a3fe3b46e1da74c5bb0d4b3 (diff)
downloadllvm-340b2baa245df02e8bed5f55cc94a54374d41cd0.zip
llvm-340b2baa245df02e8bed5f55cc94a54374d41cd0.tar.gz
llvm-340b2baa245df02e8bed5f55cc94a54374d41cd0.tar.bz2
Added a better error message to the "frame variable" when you try to view
frame variables and are not stopped in a valid frame. llvm-svn: 114267
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 547acd6..a8835e7 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -442,7 +442,7 @@ public:
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;
}