android_system_core/include
Christopher Ferris 9774df6134 Move 32 bit/64 bit check into debuggerd.
On 64 bit systems, calls to dump_backtrace_to_file or dump_tombstone
try and directly contact the correct debuggerd (32 bit vs 64 bit)
by reading the elf information for the executable.
Unfortunately, system_server makes a call to dump_backtrace_to_file
and it doesn't have permissions to read the executable data, so it
defaults to always contacting the 64 bit debuggerd.
This CL changes the code so that all dump requests go to the 64 bit
debuggerd, which reads the elf information and redirects requests for
32 bit processes to the 32 bit debuggerd.

Testing:

- Forced the watchdog code in system_server to dump stacks and
  verified that all native stacks are dumped correctly.
- Verified that dumpstate and bugreport still properly dump the native
  processes on a 64 bit and 32 bit system.
- Intentionally forced the 64 bit to 32 bit redirect to write only a
  byte at a time and verified there are no errors, and no dropped data.
- Used debuggerd and debuggerd64 to dump 32 bit and 64 bit processes
  seemlessly.
- Used debuggerd on a 32 bit system to dump native stacks.

Bug: https://code.google.com/p/android/issues/detail?id=97024
Change-Id: Ie01945153bdc1c4ded696c7334b61d58575314d1
2015-01-20 17:22:07 -08:00
..
android log: Fix warning with __USE_MINGW_ANSI_STDIO 2014-06-12 13:19:51 -07:00
backtrace Allow getting an uncached process map. 2014-08-04 19:21:23 -07:00
ctest
cutils Move 32 bit/64 bit check into debuggerd. 2015-01-20 17:22:07 -08:00
diskconfig diskconfig: Add missing include for loff_t 2012-07-23 16:11:59 -07:00
log liblog: Add log_time += operator 2015-01-05 16:27:54 +00:00
memtrack Moves libmemtrack header to standard location 2013-09-23 18:42:41 -07:00
mincrypt Add support for ECDSA P-256 with SHA256 2013-10-09 17:04:50 -07:00
nativebridge Handle code_cache dir creation in libnativebridge 2014-10-27 15:03:13 +00:00
netutils Support resetting connections tied to any nonexistent address. 2014-09-08 23:35:52 -07:00
pixelflinger
private Remove long-dead readtty. 2014-11-24 12:01:21 -08:00
system audio: add HW hotword capture flag 2014-09-19 17:45:18 -07:00
sysutils Extend to receive NFLOG packets. 2015-01-15 12:50:59 -08:00
usbhost libusbhost: Add usb_device_set_configuration and usb_device_set_interface 2014-01-13 09:54:13 -08:00
utils Add required casts for clang/llvm -Wc++11-narrowing 2015-01-12 16:53:52 -08:00
ziparchive Replace char* with ZipEntryName in ziparchive API. 2014-08-15 12:39:45 +01:00
zipfile