diff options
| author | Greg Clayton <gclayton@apple.com> | 2010-10-31 03:01:06 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2010-10-31 03:01:06 +0000 |
| commit | cfd1aced7ea66eda9b23c227cdd76a2289150a13 (patch) | |
| tree | 24d18ab977aac38caf781ac1f53b7bdb42a3c4d0 /lldb/source/Core/Address.cpp | |
| parent | a5df61a341ab35738a2788f222bd9799a060e2ea (diff) | |
Cleaned up the API logging a lot more to reduce redundant information and
keep the file size a bit smaller.
Exposed SBValue::GetExpressionPath() so SBValue users can get an expression
path for their values.
llvm-svn: 117851
Diffstat (limited to 'lldb/source/Core/Address.cpp')
| -rw-r--r-- | lldb/source/Core/Address.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp index d8e1f2568a4f..a038dd83edc4 100644 --- a/lldb/source/Core/Address.cpp +++ b/lldb/source/Core/Address.cpp @@ -410,7 +410,8 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum break; case DumpStyleModuleWithFileAddress: - s->Printf("%s[", m_section->GetModule()->GetFileSpec().GetFilename().AsCString()); + if (m_section) + s->Printf("%s[", m_section->GetModule()->GetFileSpec().GetFilename().AsCString()); // Fall through case DumpStyleFileAddress: { @@ -422,7 +423,7 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum return false; } s->Address (file_addr, addr_size); - if (style == DumpStyleModuleWithFileAddress) + if (style == DumpStyleModuleWithFileAddress && m_section) s->PutChar(']'); } break; @@ -737,21 +738,6 @@ Address::CalculateSymbolContext (SymbolContext *sc) } } -void -Address::DumpDebug(Stream *s) const -{ - *s << (void *)this << ": " << "Address"; - if (m_section != NULL) - { - *s << ", section = " << (void *)m_section << " (" << m_section->GetName() << "), offset = " << m_offset; - } - else - { - *s << ", vm_addr = " << m_offset; - } - s->EOL(); -} - int Address::CompareFileAddress (const Address& a, const Address& b) { |
