aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/breakpad/breakpad/mcontext.patch
blob: cb323fbdcb18ea5421c6358cf4a216b1303d158c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
map the mcontext_t structure for musl

Upstream-Status: Inappropriate [need to consider Android]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/src/client/linux/minidump_writer/linux_core_dumper.cc
+++ b/src/client/linux/minidump_writer/linux_core_dumper.cc
@@ -214,7 +214,7 @@ bool LinuxCoreDumper::EnumerateThreads()
         info.tgid = status->pr_pgrp;
         info.ppid = status->pr_ppid;
 #if defined(__mips__)
-# if defined(__ANDROID__)
+# if defined(__ANDROID__) || !defined(__GLIBC__)
         for (int i = EF_R0; i <= EF_R31; i++)
           info.mcontext.gregs[i - EF_R0] = status->pr_reg[i];
 # else  // __ANDROID__