diff options
author | Christopher Ferris <cferris@google.com> | 2014-01-06 19:16:33 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-01-08 15:32:28 -0800 |
commit | 9846497f7926fc3240c2893d89e60880c22d1fd6 (patch) | |
tree | d137d0957607cbdf211f6323516a8b8968004c7a /libbacktrace/BacktraceThread.cpp | |
parent | 0afaf7f4dde98ff554b69d05ed87ceab4ec611aa (diff) | |
download | system_core-9846497f7926fc3240c2893d89e60880c22d1fd6.zip system_core-9846497f7926fc3240c2893d89e60880c22d1fd6.tar.gz system_core-9846497f7926fc3240c2893d89e60880c22d1fd6.tar.bz2 |
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
Diffstat (limited to 'libbacktrace/BacktraceThread.cpp')
-rw-r--r-- | libbacktrace/BacktraceThread.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |