diff options
author | Christopher Ferris <cferris@google.com> | 2014-02-01 11:53:33 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-02-01 11:53:33 -0800 |
commit | 73dc1cc3fb799be309b8db57618be07de755eca4 (patch) | |
tree | 1e277f8a227d6a2e16d83088869dce1cccbc0995 | |
parent | cf53e5dbdfa06a16104f4ffa03aeeb538fbd1509 (diff) | |
download | system_core-73dc1cc3fb799be309b8db57618be07de755eca4.zip system_core-73dc1cc3fb799be309b8db57618be07de755eca4.tar.gz system_core-73dc1cc3fb799be309b8db57618be07de755eca4.tar.bz2 |
Call a specialized local map set.
Bug: 12852152
Change-Id: I8a0c558bc218805b0e06371af0af055e4aa6e0bb
-rw-r--r-- | libbacktrace/UnwindMap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbacktrace/UnwindMap.cpp b/libbacktrace/UnwindMap.cpp index 03bb192..8268db6 100644 --- a/libbacktrace/UnwindMap.cpp +++ b/libbacktrace/UnwindMap.cpp @@ -45,7 +45,7 @@ UnwindMap::~UnwindMap() { pthread_mutex_lock(&g_map_mutex); if (--g_map_references == 0) { // Clear the local address space map. - unw_map_set(unw_local_addr_space, NULL); + unw_map_local_set(NULL); unw_map_cursor_destroy(&map_cursor_); } pthread_mutex_unlock(&g_map_mutex); @@ -61,8 +61,8 @@ bool UnwindMap::Build() { if (g_map_references == 0) { return_value = (unw_map_cursor_create(&map_cursor_, pid_) == 0); if (return_value) { - // Set the local address space to this cursor map. - unw_map_set(unw_local_addr_space, &map_cursor_); + // Set the local address space map to our new map. + unw_map_local_set(&map_cursor_); g_map_references = 1; g_map_cursor = map_cursor_; } |