diff options
author | Mitch Phillips <mitchp@google.com> | 2020-02-14 14:50:35 -0800 |
---|---|---|
committer | Mitch Phillips <mitchp@google.com> | 2020-02-19 09:01:27 -0800 |
commit | 4c9293f29ae054c10a032e97a5cee54911d4e3db (patch) | |
tree | f7d77f732630321eba9b7beef55f2565f8a8dc44 /linker/linker_debuggerd_android.cpp | |
parent | 679d8e19cf5c0f073f72f2cd906d2981c3fa8e69 (diff) |
[GWP-ASan] Export GWP-ASan regions to libdebuggerd.
Exports GWP-ASan allocator information callbacks to libdebuggerd so that
tombstoned can get information from the GWP-ASan allocator in the case
of a crash.
Bug: 135634846
Test: atest bionic-unit-tests
Change-Id: Ie16426af55602fb2a76c4e69217773354c365843
Diffstat (limited to 'linker/linker_debuggerd_android.cpp')
-rw-r--r-- | linker/linker_debuggerd_android.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linker/linker_debuggerd_android.cpp b/linker/linker_debuggerd_android.cpp index b8c82f990..42ea2b7ff 100644 --- a/linker/linker_debuggerd_android.cpp +++ b/linker/linker_debuggerd_android.cpp @@ -39,6 +39,12 @@ void linker_debuggerd_init() { return __libc_shared_globals()->abort_msg; }, .post_dump = ¬ify_gdb_of_libraries, + .get_gwp_asan_state = []() { + return __libc_shared_globals()->gwp_asan_state; + }, + .get_gwp_asan_metadata = []() { + return __libc_shared_globals()->gwp_asan_metadata; + }, }; debuggerd_init(&callbacks); } |