summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Core/Debugger.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index a46bcbf72fb..015924919c0 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -2269,12 +2269,12 @@ Debugger::FormatPrompt
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)
OpenPOWER on IntegriCloud