Add the record alloc option.
This option adds the ability to record all of the allocation requests
and dump them to a file when a signal is sent to the process.
Included in this change, redo the option processing to add a new
string option.
Bug: 27747898
Change-Id: Ida043362e38b5eb1d459c99db9c2581015dab366
diff --git a/libc/malloc_debug/Android.mk b/libc/malloc_debug/Android.mk
index 3576611..00f5f89 100644
--- a/libc/malloc_debug/Android.mk
+++ b/libc/malloc_debug/Android.mk
@@ -8,6 +8,7 @@
FreeTrackData.cpp \
GuardData.cpp \
malloc_debug.cpp \
+ RecordData.cpp \
TrackData.cpp \
# ==============================================================
@@ -58,6 +59,7 @@
LOCAL_STATIC_LIBRARIES_arm := libunwind_llvm
LOCAL_STATIC_LIBRARIES += \
+ libbase \
libc_malloc_debug_backtrace \
libc_logging \