OSDN Git Service

Make raise/abort work with stale cached pid/tid values.
authorJosh Gao <jmgao@google.com>
Fri, 5 May 2017 20:27:15 +0000 (13:27 -0700)
committerJosh Gao <jmgao@google.com>
Fri, 5 May 2017 21:25:24 +0000 (14:25 -0700)
commitbf2af69fb2ff1365f4075d0207d6a895bc2727ed
treef4ff284b54aef4d14c18ecb3d355b81bb5878c6a
parent05fd20c797c0aab700183131023130e45a748a47
Make raise/abort work with stale cached pid/tid values.

Switch raise to using tgkill with direct syscalls of getpid/gettid,
and switch abort to use raise(SIGABRT).

Bug: http://b/37769298
Test: debuggerd_test
Change-Id: If6f9d17fd8ae6177e742dc9f2f44bd78539431ba
libc/bionic/abort.cpp
libc/bionic/raise.cpp