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 01:10:00 +0000 (18:10 -0700)
commit861c0ef37bcfcae56d88572cb01c18bcfe1faded
treef63fc703a50b23213537962e4f60519f8b34db47
parenta7dc7600fe1be1f3fd61856b407bb7065307e711
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

Change-Id: I6b02ef6ce26fdb7a59ad1029e7cbba9accceb704
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