• Elliott Hughes's avatar
    Make abort messages available to debuggerd. · 0d787c1f
    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
    Change-Id: I416ec1da38a8a1b0d0a582ccd7c8aaa681ed4a29
    0d787c1f
dlmalloc.c 1.58 KB