diff options
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 1c11ee19dd2..2efd4432d58 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -990,7 +990,8 @@ ValueObject::DumpValueObject s.Indent(); - if (show_types) + // Always show the type for the top level items. + if (show_types || curr_depth == 0) s.Printf("(%s) ", valobj->GetTypeName().AsCString()); @@ -1021,7 +1022,7 @@ ValueObject::DumpValueObject if (err_cstr) { - s.Printf (" %s\n", err_cstr); + s.Printf (" error: %s\n", err_cstr); } else { |

