• Elliott Hughes's avatar
    Make abort messages available to debuggerd. · 7b4d77e4
    Elliott Hughes authored
    This adds __libc_fatal, cleans up the internal logging code a bit more,
    and switches suitable callers over to __libc_fatal. In addition to logging,
    __libc_fatal stashes the message somewhere that the debuggerd signal handler
    can find it before calling abort.
    
    In the debuggerd signal handler, we pass this address to debuggerd so that
    it can come back with ptrace to read the message and present it to the user.
    
    Bug: 8531731
    
    (cherry picked from commit 0d787c1f)
    
    Change-Id: I5daeeaa36c1fc23f7f437d73a19808d9d558dd4d
    7b4d77e4
dlmalloc.c 1.58 KB