summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-11-02 01:50:16 +0000
committerGreg Clayton <gclayton@apple.com>2010-11-02 01:50:16 +0000
commit7c8a966442a2c70e0017a6497b0db353c3164523 (patch)
tree614405a869aed05c3780b027ae5e19fbb3a44d34 /lldb/source/Core/ValueObject.cpp
parent07072664c4c24d10b9563ec8293a902c4882398b (diff)
downloadbcm5719-llvm-7c8a966442a2c70e0017a6497b0db353c3164523.tar.gz
bcm5719-llvm-7c8a966442a2c70e0017a6497b0db353c3164523.zip
Print better error messages when memory reads fail when displaying variable
values. Always show the variable types for the top level items when dumping program variables. llvm-svn: 117999
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r--lldb/source/Core/ValueObject.cpp5
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
{
OpenPOWER on IntegriCloud