[Lldb-commits] [PATCH] D28035: Stop limiting the number of TSan backtrace size to 8
Phabricator via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 9 17:25:47 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL291522: Stop limiting the number of TSan backtrace size to 8 (authored by kuba.brecka).
Changed prior to commit:
https://reviews.llvm.org/D28035?vs=82280&id=83753#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28035
Files:
lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
Index: lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
===================================================================
--- lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
+++ lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
@@ -206,7 +206,8 @@
StructuredData::Array *trace = new StructuredData::Array();
ValueObjectSP trace_value_object =
o->GetValueForExpressionPath(trace_item_name.c_str());
- for (int j = 0; j < 8; j++) {
+ size_t count = trace_value_object->GetNumChildren();
+ for (size_t j = 0; j < count; j++) {
addr_t trace_addr =
trace_value_object->GetChildAtIndex(j, true)->GetValueAsUnsigned(0);
if (trace_addr == 0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28035.83753.patch
Type: text/x-patch
Size: 800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170110/df4598c7/attachment.bin>
More information about the lldb-commits
mailing list