fdsan: expose the address of the table to the platform.
Let the debuggerd handler get the address of the fdsan table so that crash_dump can parse it and print it out in tombstones. Test: debuggerd `pidof adbd` Change-Id: I2297200cae52d0ff24479dba55d1ab4938583501
This commit is contained in:
parent
e6dab7b55f
commit
e16082f717
|
@ -139,6 +139,11 @@ static FdTable* GetFdTable() {
|
|||
return &__libc_shared_globals->fd_table;
|
||||
}
|
||||
|
||||
// Exposed to the platform to allow crash_dump to print out the fd table.
|
||||
extern "C" void* android_fdsan_get_fd_table() {
|
||||
return GetFdTable();
|
||||
}
|
||||
|
||||
static FdEntry* GetFdEntry(int fd) {
|
||||
if (fd < 0) {
|
||||
return nullptr;
|
||||
|
|
|
@ -1661,6 +1661,7 @@ LIBC_PLATFORM {
|
|||
__system_property_area_init;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_fdsan_get_fd_table;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
android_net_res_stats_get_usable_servers;
|
||||
|
|
|
@ -1379,6 +1379,7 @@ LIBC_PLATFORM {
|
|||
__system_property_area_init;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_fdsan_get_fd_table;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
android_net_res_stats_get_usable_servers;
|
||||
|
|
|
@ -1687,6 +1687,7 @@ LIBC_PLATFORM {
|
|||
__system_property_area_init;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_fdsan_get_fd_table;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
android_net_res_stats_get_usable_servers;
|
||||
|
|
|
@ -1502,6 +1502,7 @@ LIBC_PLATFORM {
|
|||
__system_property_area_init;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_fdsan_get_fd_table;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
android_net_res_stats_get_usable_servers;
|
||||
|
|
|
@ -1379,6 +1379,7 @@ LIBC_PLATFORM {
|
|||
__system_property_area_init;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_fdsan_get_fd_table;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
android_net_res_stats_get_usable_servers;
|
||||
|
|
|
@ -1501,6 +1501,7 @@ LIBC_PLATFORM {
|
|||
__system_property_area_init;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_fdsan_get_fd_table;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
android_net_res_stats_get_usable_servers;
|
||||
|
|
|
@ -1379,6 +1379,7 @@ LIBC_PLATFORM {
|
|||
__system_property_area_init;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_fdsan_get_fd_table;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
android_net_res_stats_get_usable_servers;
|
||||
|
|
Loading…
Reference in New Issue