Add GetDescription() and __repr__ () methods to most API classes, to allow
"print" from inside Python to print out the objects in a more useful
manner.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@114321 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Symbol/Block.cpp b/source/Symbol/Block.cpp
index a219389..1731bf4 100644
--- a/source/Symbol/Block.cpp
+++ b/source/Symbol/Block.cpp
@@ -236,6 +236,17 @@
s->Printf(", Block{0x%8.8x}", GetID());
}
+void
+Block::DumpAddressRanges (Stream *s, lldb::addr_t base_addr)
+{
+ if (!m_ranges.empty())
+ {
+ std::vector<VMRange>::const_iterator pos, end = m_ranges.end();
+ for (pos = m_ranges.begin(); pos != end; ++pos)
+ pos->Dump (s, base_addr);
+ }
+}
+
bool
Block::Contains (addr_t range_offset) const
{