breakpad/android
Michael Forney e780d58fd7 Use breakpad_getcontext on all Linux platforms missing getcontext
getcontext is also not available on musl libc, so generalize
breakpad_getcontext so it can be used as a fallback for non-Android
platforms as well.

On x86_64 and i386, ucontext_t uses an Android-specific offset for
storage of FP registers, since its sigset_t differs in size. So,
make the definition of MCONTEXT_FPREGS_MEM and UCONTEXT_FPREGS_MEM_OFFSET
conditional on whether we are building for Android.

On glibc and musl, signal.h and asm/sigcontext.h can't be included
together, so in breakpad_context_unittest.cc, only compare the libc
and kernel _fpstate when on Android.

Bug: google-breakpad:631
Change-Id: If81d73c4101bae946e9a3655b8d1c40a34ab6c38
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2102135
Reviewed-by: Mike Frysinger <vapier@chromium.org>
2020-03-16 21:27:07 +00:00
..
google_breakpad Use breakpad_getcontext on all Linux platforms missing getcontext 2020-03-16 21:27:07 +00:00
sample_app sample_app: enable C++11 for Android builds 2016-04-04 21:35:26 -04:00
common-functions.sh
run-checks.sh Fix the Android/MIPS build. 2013-09-25 13:47:44 +00:00
test-driver Misc Android-related fixes. 2013-12-13 16:49:11 +00:00
test-shell.sh Misc Android-related fixes. 2013-12-13 16:49:11 +00:00