Add some more tests for breakpoint serialization.

Serialize breakpoint names & the hardware_requested attributes.
Also added a few missing affordances to SBBreakpoint whose absence
writing the tests pointed out.

<rdar://problem/12611863>

llvm-svn: 282036
This commit is contained in:
Jim Ingham
2016-09-20 22:54:49 +00:00
parent b6b8f6c308
commit 92d1960e3b
14 changed files with 270 additions and 64 deletions

View File

@@ -75,6 +75,12 @@ void SBStringList::AppendList(const SBStringList &strings) {
}
}
void SBStringList::AppendList(const StringList &strings) {
if (!IsValid())
m_opaque_ap.reset(new lldb_private::StringList());
m_opaque_ap->AppendList(strings);
}
uint32_t SBStringList::GetSize() const {
if (IsValid()) {
return m_opaque_ap->GetSize();