[Lldb-commits] [PATCH] [lldb] ASan history threads SB API

Kuba Brecka 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.

http://reviews.llvm.org/D5175

Files:
  include/lldb/API/SBValue.h
  scripts/Python/interface/SBValue.i
  source/API/SBValue.cpp
  test/functionalities/asan/TestAsan.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5175.13219.patch
Type: text/x-patch
Size: 6672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140903/362ba7b3/attachment.bin>


More information about the lldb-commits mailing list