From 9846497f7926fc3240c2893d89e60880c22d1fd6 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Mon, 6 Jan 2014 19:16:33 -0800 Subject: Refactor to share map_info amongst threads. Allow the use of the same map info to be shared when getting information on multiple threads from the same pid. Change-Id: I2e460e20154a10f4894ae563331fb32179e4551f --- libbacktrace/BacktraceThread.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libbacktrace/BacktraceThread.cpp') diff --git a/libbacktrace/BacktraceThread.cpp b/libbacktrace/BacktraceThread.cpp index 8e664c4..70616b0 100644 --- a/libbacktrace/BacktraceThread.cpp +++ b/libbacktrace/BacktraceThread.cpp @@ -114,8 +114,9 @@ static void SignalHandler(int n __attribute__((unused)), siginfo_t* siginfo, } BacktraceThread::BacktraceThread( - BacktraceImpl* impl, BacktraceThreadInterface* thread_intf, pid_t tid) - : BacktraceCurrent(impl), thread_intf_(thread_intf) { + BacktraceImpl* impl, BacktraceThreadInterface* thread_intf, pid_t tid, + backtrace_map_info_t* map_info) + : BacktraceCurrent(impl, map_info), thread_intf_(thread_intf) { backtrace_.tid = tid; } -- cgit v1.1