[Lldb-commits] [PATCH] D16244: Implementing the method Target::TargetEventData::Dump (Stream *s) so that its clients can easily dump it out for informational messages.

Thakur Vishwesh Singh via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 15 14:14:20 PST 2016


vishwesh created this revision.
vishwesh added reviewers: ovyalov, abidh, clayborg.
vishwesh added a subscriber: lldb-commits.

http://reviews.llvm.org/D16244

Files:
  source/Target/Target.cpp

Index: source/Target/Target.cpp
===================================================================
--- source/Target/Target.cpp
+++ source/Target/Target.cpp
@@ -4147,6 +4147,12 @@
 void
 Target::TargetEventData::Dump (Stream *s) const
 {
+    for (size_t i = 0; i < m_module_list.GetSize(); ++i)
+    {
+        if (i != 0)
+             *s << ", ";
+        m_module_list.GetModuleAtIndex(i)->GetDescription(s, lldb::eDescriptionLevelBrief);
+    }
 }
 
 const Target::TargetEventData *


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16244.45036.patch
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160115/8021f25f/attachment.bin>


More information about the lldb-commits mailing list