[Lldb-commits] [lldb] r169781 - /lldb/trunk/source/Core/Debugger.cpp
Greg Clayton
gclayton at apple.com
Mon Dec 10 14:26:34 PST 2012
Author: gclayton
Date: Mon Dec 10 16:26:34 2012
New Revision: 169781
URL: http://llvm.org/viewvc/llvm-project?rev=169781&view=rev
Log:
<rdar://problem/11844604>
When displaying function.name-with-args format will now print "varname=<unavailable>" instead of omitting argument names and values when there is an error reading the value.
Modified:
lldb/trunk/source/Core/Debugger.cpp
Modified: lldb/trunk/source/Core/Debugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Debugger.cpp?rev=169781&r1=169780&r2=169781&view=diff
==============================================================================
--- lldb/trunk/source/Core/Debugger.cpp (original)
+++ lldb/trunk/source/Core/Debugger.cpp Mon Dec 10 16:26:34 2012
@@ -2269,12 +2269,12 @@
ValueObjectSP var_value_sp (ValueObjectVariable::Create (exe_scope, var_sp));
const char *var_name = var_value_sp->GetName().GetCString();
const char *var_value = var_value_sp->GetValueAsCString();
+ if (arg_idx > 0)
+ s.PutCString (", ");
if (var_value_sp->GetError().Success())
- {
- if (arg_idx > 0)
- s.PutCString (", ");
s.Printf ("%s=%s", var_name, var_value);
- }
+ else
+ s.Printf ("%s=<unavailable>", var_name);
}
if (close_paren)
More information about the lldb-commits
mailing list