platform_system_core/debuggerd
Christopher Ferris b7de5f5429 Demand read load bias for a map.
Add a static GetLoadBias method to the Elf object that only reads just
enough to get the load bias.

Add a method to MapInfo that gets the load bias. First attempt to get
it if the elf object already exists. If no elf object was created, use
the new static method to get the load bias.

In BacktraceMap, add a custom iterator so that when code dereferences
a map element, that's when the load bias will be retrieved if it hasn't
already been set.

Bug: 69871050

Test: New unit tests, verify tombstones have non-zero load bias values for
Test: libraries with a non-zero load bias.
Change-Id: I125f4abc827589957fce2f0df24b0f25d037d732
2017-12-05 13:12:47 -08:00
..
client crash_dump: lower THREAD_COUNT in debuggerd_client.race for low-speed devices 2017-06-23 08:59:22 +09:00
common/include tombstoned: allow intercepts for java traces. 2017-05-31 10:35:32 +01:00
crasher Use -Werror in system/core 2017-11-01 11:32:55 -07:00
handler Force call the fallback handler. 2017-11-16 20:07:13 -08:00
include/debuggerd tombstoned: allow intercepts for java traces. 2017-05-31 10:35:32 +01:00
libdebuggerd Demand read load bias for a map. 2017-12-05 13:12:47 -08:00
tombstoned tombstoned: fix another call to evconnlistener_new. 2017-09-22 18:00:35 -07:00
.clang-format Remove extraneous .clang-format files 2017-03-14 14:06:31 -07:00
Android.bp Only call one unwinder. 2017-10-27 15:18:27 -07:00
crash_dump.cpp Only call one unwinder. 2017-10-27 15:18:27 -07:00
debuggerd.cpp Remove unnecessary SELinux dependencies 2017-07-01 07:41:48 -07:00
debuggerd_test.cpp crash_dump: don't inherit environment from parent. 2017-11-03 16:57:56 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
protocol.h tombstoned: allow intercepts for java traces. 2017-05-31 10:35:32 +01:00
util.cpp base: add Pipe and Socketpair wrappers. 2017-08-28 14:51:07 -07:00
util.h base: add Pipe and Socketpair wrappers. 2017-08-28 14:51:07 -07:00