Implement ASan history threads in SB API

Reviewed at
http://reviews.llvm.org/D5219
and
http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140901/012809.html

llvm-svn: 217300
This commit is contained in:
Kuba Brecka
2014-09-06 01:33:13 +00:00
parent edc4414094
commit a51ea3822a
6 changed files with 57 additions and 0 deletions

View File

@@ -38,6 +38,7 @@
#include "lldb/API/SBEvent.h"
#include "lldb/API/SBFileSpec.h"
#include "lldb/API/SBThread.h"
#include "lldb/API/SBThreadCollection.h"
#include "lldb/API/SBStream.h"
#include "lldb/API/SBStringList.h"
#include "lldb/API/SBUnixSignals.h"
@@ -1381,3 +1382,15 @@ SBProcess::GetExtendedBacktraceTypeAtIndex (uint32_t idx)
}
return NULL;
}
SBThreadCollection
SBProcess::GetHistoryThreads (addr_t addr)
{
ProcessSP process_sp(GetSP());
SBThreadCollection threads;
if (process_sp)
{
threads = SBThreadCollection(process_sp->GetHistoryThreads(addr));
}
return threads;
}