platform_bionic/libc
Christopher Ferris c0352bbd5f Add offset to backtrace_string printing.
The libmemunreachable code uses backtrace_string to print out the backtrace
information. However, when the offset of the map that a frame is in is
non-zero, no information is printed. This means that when a frame comes from
a shared library loaded from an apk, it's impossible to tell which
shared library the frame is really coming from.

Add the offset display when it's non-zero. This means this can now be fed
to development/scripts/stack to decode the frame.

Bug: 37276041

Test: Ran dumpsys meminfo --unreachable on an app that leaks from a
Test: shared library and verified the offset output is present.
Change-Id: I61d34ae3f617622d354cc099eff520a64782b6e2
2017-05-25 18:38:45 -07:00
..
arch-arm Fix assembler warnings. 2017-05-24 16:06:11 -07:00
arch-arm64 Switch to inline assembler in crtbegin. 2017-05-23 14:47:16 -07:00
arch-common/bionic Remove obsolete __stack_chk_fail_local. 2017-05-23 16:43:30 -07:00
arch-mips Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
arch-mips64 Remove deprecated Android.mk files 2016-05-26 16:41:57 -07:00
arch-x86 Remove obsolete __stack_chk_fail_local. 2017-05-23 16:43:30 -07:00
arch-x86_64 Make all the ELF relocation constants available. 2017-04-19 13:28:32 -07:00
async_safe Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
bionic Va_end should be used with va_start 2017-05-20 13:20:41 -07:00
dns Make use of the DNS query hook in the netcontext 2017-05-22 18:37:25 -04:00
include Merge "Stop including <sys/sysmacros.h> from <sys/types.h>." 2017-05-25 01:43:07 +00:00
kernel Remove the repetitive warnings from the uapi headers. 2017-05-25 13:48:01 -07:00
malloc_debug Add offset to backtrace_string printing. 2017-05-25 18:38:45 -07:00
private Add support for modifying decay timer. 2017-05-15 16:59:16 -07:00
seccomp [MIPS64] Enable necessary mips64 syscalls in seccomp whitelist 2017-05-05 15:37:11 +02:00
stdio Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
stdlib Clean up __isthreaded. 2017-05-11 15:29:03 -07:00
tools Add seccomp blacklist, and exclude swap functions 2017-04-12 19:34:33 +00:00
tzcode Fix incorrect check. 2017-04-14 12:58:56 -07:00
upstream-freebsd libc: add clang FORTIFY support 2017-02-09 15:49:32 -08:00
upstream-netbsd Move to .md files for even trivial documentation. 2017-01-07 12:47:28 -08:00
upstream-openbsd Clean up __isthreaded. 2017-05-11 15:29:03 -07:00
versioner-dependencies Revert "Revert "Run the versioner as part of the build."" 2017-03-27 13:06:45 -07:00
zoneinfo Addition of a new system file for time zone data 2017-03-31 15:35:14 +01:00
Android.bp Switch to inline assembler in crtbegin. 2017-05-23 14:47:16 -07:00
Android.mk Rename Android.soong.mk to Android.mk 2016-07-11 16:54:20 -07:00
fs_config_generator.py Revert "Revert "move android_ids into bionic"" 2016-12-13 23:47:25 +00:00
libc.arm.map Add a netcontext variant of gethostbyname 2017-05-22 10:19:25 -04:00
libc.arm64.map Add a netcontext variant of gethostbyname 2017-05-22 10:19:25 -04:00
libc.map.txt Add a netcontext variant of gethostbyname 2017-05-22 10:19:25 -04:00
libc.mips.map Add a netcontext variant of gethostbyname 2017-05-22 10:19:25 -04:00
libc.mips64.map Add a netcontext variant of gethostbyname 2017-05-22 10:19:25 -04:00
libc.x86.map Add a netcontext variant of gethostbyname 2017-05-22 10:19:25 -04:00
libc.x86_64.map Add a netcontext variant of gethostbyname 2017-05-22 10:19:25 -04:00
libstdc++.arm.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.arm64.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.map.txt Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.mips.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.mips64.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.x86.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.x86_64.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
MODULE_LICENSE_BSD
NOTICE libc: clean up ARM64 copyright notices 2017-05-04 12:59:53 -04:00
SECCOMP_BLACKLIST.TXT Add seccomp blacklist, and exclude swap functions 2017-04-12 19:34:33 +00:00
SECCOMP_WHITELIST.TXT Add syscalls that aren't currently used to the seccomp whitelist. 2017-04-19 13:45:47 -07:00
SYSCALLS.TXT [MIPS64] Enable necessary mips64 syscalls in seccomp whitelist 2017-05-05 15:37:11 +02:00
version_script.txt