OSDN Git Service

Use libunwindbacktrace for debug malloc code.
authorChristopher Ferris <cferris@google.com>
Fri, 25 Jul 2014 00:52:23 +0000 (17:52 -0700)
committerChristopher Ferris <cferris@google.com>
Wed, 30 Jul 2014 02:30:09 +0000 (19:30 -0700)
commitc701e5b3357b6484572d46f29c5d1e51063dfcbb
tree745b0094a10ebcc3f1928d2d174f6d8b0ff80f27
parent1242f7eb67c678922b55e2077d9cf2d5cdc85b15
Use libunwindbacktrace for debug malloc code.

Create a method of disabling the debug allocation code paths so that
it's possible to use the libunwindbacktrace library without any
modifications.

Use this path to create and destroy the maps for the process. It's not
stricly necessary in the init code since the symbols are not modified
until after the initialize calls.

Also, remove the debug_XXX source files that doesn't need to be in libc.so.

Fix the maps reading code since it was completely broken for 64 bit.

Bug: 16408686

(cherry picked from commit 861c0ef37bcfcae56d88572cb01c18bcfe1faded)

Change-Id: I04445f0cf9a1e85172b64d57df92eb7939ce2332
libc/Android.mk
libc/bionic/debug_mapinfo.cpp
libc/bionic/debug_mapinfo.h
libc/bionic/debug_stacktrace.cpp
libc/bionic/malloc_debug_check.cpp
libc/bionic/malloc_debug_disable.h [new file with mode: 0644]
libc/bionic/malloc_debug_leak.cpp