diff options
| author | Jim Ingham <jingham@apple.com> | 2010-09-10 23:12:17 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2010-09-10 23:12:17 +0000 |
| commit | 53c47f1e2f61c5ab5060970e49fc5dfc3cdaac9f (patch) | |
| tree | 97b684cb5064d6b325eaaa5d6d9ea9b720087b88 /lldb/source/API/SBValue.cpp | |
| parent | cc766a20d35a336802f0c7ba344956b90d1f715d (diff) | |
| download | bcm5719-llvm-53c47f1e2f61c5ab5060970e49fc5dfc3cdaac9f.tar.gz bcm5719-llvm-53c47f1e2f61c5ab5060970e49fc5dfc3cdaac9f.zip | |
Move the "Object Description" into the ValueObject, and the add an API to
SBValue to access it. For now this is just the result of ObjC NSPrintForDebugger,
but could be extended. Also store the results of the ObjC Object Printer in a
Stream, not a ConstString.
llvm-svn: 113660
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
| -rw-r--r-- | lldb/source/API/SBValue.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index f92be9f1037..a90c1bff6b7 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -176,6 +176,15 @@ SBValue::GetValue (const SBFrame &frame) return value_string; } +const char * +SBValue::GetObjectDescription (const SBFrame &frame) +{ + const char *value_string = NULL; + if ( m_opaque_sp) + value_string = m_opaque_sp->GetObjectDescription (frame.get()); + return value_string; +} + bool SBValue::GetValueDidChange (const SBFrame &frame) { |

