[Lldb-commits] [PATCH] [lldb] ASan history threads SB API
kuba.brecka at gmail.com
Wed Sep 3 11:41:38 PDT 2014
This patch depends on http://reviews.llvm.org/D4596.
As a continuation of the previous patch that adds a MemoryHistory plugin and implementation for ASan-provided malloc/free stack traces, this patch exposes this into the SB API. In short, these two new methods are added into SBValue:
* uint32_t SBValue::GetNumMemoryHistoryThreads ();
* SBThread SBValue::GetMemoryHistoryThreadAtIndex (uint32_t idx);
This corresponds to how we provide objects for which we don't have containers (SBFrame and GetNumFrames + GetFrameAtIndex). Note that exposing ThreadList into a generic SBThreadList container would not be straightforward, because currently ThreadList is not a generic container of threads, but instead holds functionality tied to a process and can currently only be used to hold all threads in a process.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6672 bytes
Desc: not available
More information about the lldb-commits