summaryrefslogtreecommitdiffstats
path: root/runtime/utils.h
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-01-07 22:08:35 -0800
committerAndreas Gampe <agampe@google.com>2015-01-08 09:35:31 -0800
commit628a61ac52a8a314e74ab445397add60b4e72a5b (patch)
treedf78aa48e31e58669c6ae63ace7ba6bb532ec65d /runtime/utils.h
parent4270e74152d8a7cd979ab5a92fe2a8f84adb8a42 (diff)
downloadart-628a61ac52a8a314e74ab445397add60b4e72a5b.tar.gz
art-628a61ac52a8a314e74ab445397add60b4e72a5b.tar.bz2
art-628a61ac52a8a314e74ab445397add60b4e72a5b.zip
ART: Pass ucontext to Backtrace in Stack Dump
In case of an unexpected signal on the host we dump the thread stack ourselves. We have to pass the context given to the signal handler, as the signal handler is run on an alternate stack. Otherwise libbacktrace can't dump the actual faulty part. Bug: 18933933 Change-Id: Id2710d2fd44b7c3b3335973a9288979a5793638b
Diffstat (limited to 'runtime/utils.h')
-rw-r--r--runtime/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/utils.h b/runtime/utils.h
index f9622b7110..b5413e75b6 100644
--- a/runtime/utils.h
+++ b/runtime/utils.h
@@ -465,7 +465,7 @@ void SetThreadName(const char* thread_name);
// Dumps the native stack for thread 'tid' to 'os'.
void DumpNativeStack(std::ostream& os, pid_t tid, const char* prefix = "",
- mirror::ArtMethod* current_method = nullptr)
+ mirror::ArtMethod* current_method = nullptr, void* ucontext = nullptr)
NO_THREAD_SAFETY_ANALYSIS;
// Dumps the kernel stack for thread 'tid' to 'os'. Note that this is only available on linux-x86.