[Lldb-commits] [lldb] r152265 - /lldb/trunk/source/Symbol/Symbol.cpp
Greg Clayton
gclayton at apple.com
Wed Mar 7 15:30:39 PST 2012
Author: gclayton
Date: Wed Mar 7 17:30:39 2012
New Revision: 152265
URL: http://llvm.org/viewvc/llvm-project?rev=152265&view=rev
Log:
Make sure the byte size is correct when dumping as it may need to be calculated on the fly.
Modified:
lldb/trunk/source/Symbol/Symbol.cpp
Modified: lldb/trunk/source/Symbol/Symbol.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Symbol.cpp?rev=152265&r1=152264&r2=152265&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Symbol.cpp (original)
+++ lldb/trunk/source/Symbol/Symbol.cpp Wed Mar 7 17:30:39 2012
@@ -183,9 +183,10 @@
if (m_addr_range.GetBaseAddress().GetSection())
{
- if (m_addr_range.GetBaseAddress().IsSectionOffset())
+ if (ValueIsAddress())
{
- if (m_addr_range.GetByteSize() > 0)
+ const lldb::addr_t byte_size = GetByteSize();
+ if (byte_size > 0)
{
s->PutCString (", range = ");
m_addr_range.Dump(s, target, Address::DumpStyleLoadAddress, Address::DumpStyleFileAddress);
@@ -244,7 +245,7 @@
" Sibling -> [%5llu] 0x%8.8x %s\n":
" 0x%16.16llx 0x%8.8x %s\n";
s->Printf( format,
- m_addr_range.GetByteSize(),
+ GetByteSize(),
m_flags,
m_mangled.GetName().AsCString(""));
}
@@ -255,7 +256,7 @@
"0x%16.16llx 0x%16.16llx 0x%8.8x %s\n";
s->Printf( format,
m_addr_range.GetBaseAddress().GetOffset(),
- m_addr_range.GetByteSize(),
+ GetByteSize(),
m_flags,
m_mangled.GetName().AsCString(""));
}
More information about the lldb-commits
mailing list