summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/InstrumentationRuntime
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-01-10 01:14:52 +0000
committerKuba Mracek <mracek@apple.com>2017-01-10 01:14:52 +0000
commit89c3170d615d3781ce024cd0dd662fcb70a6bcb6 (patch)
tree163cf1dc3f2f429c004b04acb4ad6582ce19e81a /lldb/source/Plugins/InstrumentationRuntime
parentc6e3b6f156592a297b5db699412dc0902835669f (diff)
downloadbcm5719-llvm-89c3170d615d3781ce024cd0dd662fcb70a6bcb6.tar.gz
bcm5719-llvm-89c3170d615d3781ce024cd0dd662fcb70a6bcb6.zip
Stop limiting the number of TSan backtrace size to 8
We currently limit the length of TSan returned backtraces to 8, which is not necessary (and a bug, most likely). Let's remove this. Differential Revision: https://reviews.llvm.org/D28035 llvm-svn: 291522
Diffstat (limited to 'lldb/source/Plugins/InstrumentationRuntime')
-rw-r--r--lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp b/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
index 3010724306e..d8a46e5d455 100644
--- a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
+++ b/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
@@ -206,7 +206,8 @@ CreateStackTrace(ValueObjectSP o,
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)
OpenPOWER on IntegriCloud