platform_system_core/debuggerd/handler
Josh Gao 2e7b8e2d1a debuggerd_handler: use syscall(__NR_get[pt]id) instead of get[pt]id.
bionic's cached values for getpid/gettid can be invalid if the crashing
process manually invoked clone to create a thread or process, which
will lead the crash_dump refusing to do anything, because it sees the
actual values.

Use the getpid/gettid syscalls directly to ensure correct values on
this end.

Bug: http://b/37769298
Test: debuggerd_test
Change-Id: I0b1e652beb1a66e564a48b88ed7fa971d61c6ff9
2017-05-05 14:58:12 -07:00
..
debuggerd_fallback.cpp Move libc_logging to libasync_safe. 2017-05-02 18:38:46 -07:00
debuggerd_fallback_nop.cpp debuggerd_handler: implement missing fallback functionality. 2017-03-09 11:26:05 -08:00
debuggerd_handler.cpp debuggerd_handler: use syscall(__NR_get[pt]id) instead of get[pt]id. 2017-05-05 14:58:12 -07:00