summaryrefslogtreecommitdiff
path: root/lib/asan/asan_thread.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-09-05 07:37:15 +0000
committerAlexey Samsonov <samsonov@google.com>2012-09-05 07:37:15 +0000
commit71b42c9740e6f73da607aaa539affb5c4807231c (patch)
tree5e796e9b30c19f293910a7585a976a7aba3e92f3 /lib/asan/asan_thread.h
parent1dc4cf7e253aefa3ce3bd4a1d349a13647e8b2ea (diff)
downloadcompiler-rt-71b42c9740e6f73da607aaa539affb5c4807231c.tar.gz
compiler-rt-71b42c9740e6f73da607aaa539affb5c4807231c.tar.bz2
compiler-rt-71b42c9740e6f73da607aaa539affb5c4807231c.tar.xz
[ASan] Add print_full_thread_history runtime option (on by default) that prints all full thread creation paths for threads involved in ASan error report
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_thread.h')
-rw-r--r--lib/asan/asan_thread.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/asan/asan_thread.h b/lib/asan/asan_thread.h
index 8abc1d12..4d4c4399 100644
--- a/lib/asan/asan_thread.h
+++ b/lib/asan/asan_thread.h
@@ -40,16 +40,12 @@ class AsanThreadSummary {
}
thread_ = 0;
}
- void Announce() {
- if (tid_ == 0) return; // no need to announce the main thread.
- if (!announced_) {
- announced_ = true;
- Printf("Thread T%d created by T%d here:\n", tid_, parent_tid_);
- PrintStack(&stack_);
- }
- }
u32 tid() { return tid_; }
void set_tid(u32 tid) { tid_ = tid; }
+ u32 parent_tid() { return parent_tid_; }
+ bool announced() { return announced_; }
+ void set_announced(bool announced) { announced_ = announced; }
+ StackTrace *stack() { return &stack_; }
AsanThread *thread() { return thread_; }
void set_thread(AsanThread *thread) { thread_ = thread; }
static void TSDDtor(void *tsd);