Implementing the method Target::TargetEventData::Dump (Stream *s) so that its clients can easily dump it out for informational messages.

http://reviews.llvm.org/D16244

Submitting on behalf of vishwesh@google.com.

llvm-svn: 258150
This commit is contained in:
Oleksiy Vyalov 2016-01-19 17:54:47 +00:00
parent a39d305ded
commit 8b85b03b06
1 changed files with 6 additions and 0 deletions

View File

@ -4147,6 +4147,12 @@ Target::TargetEventData::GetFlavorString ()
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 *