board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / google-breakpad / 0001-add-missing-asm-ptrace-include.patch
blob281c7a042a15ae8e86b5a1b7d60501bb63da091d
1 Include <asm/ptrace.h> to get necessary definitions on AArch64
3 In glibc commit
4 https://sourceware.org/git/?p=glibc.git;a=commit;h=7d05a8168b45c0580e1f9a79c2dd26c8f0d31fca,
5 including <asm/ptrace.h> from <sys/user.h> on AArch64 has been
6 removed. So the Google Breakpad code, which used to build fine on
7 glibc 2.18 (CodeSourcery toolchain for example), no longer builds with
8 glibc 2.19 (Linaro toolchain for example).
10 To fix this, this patch adds the missing <asm/ptrace.h> include (for
11 AArch64 only, to be conservative).
13 This patch has not been submitted upstream, since more recent versions
14 of Google Breakpad have completely changed this part of the code.
16 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18 Index: b/src/client/linux/minidump_writer/linux_dumper.h
19 ===================================================================
20 --- a/src/client/linux/minidump_writer/linux_dumper.h
21 +++ b/src/client/linux/minidump_writer/linux_dumper.h
22 @@ -43,6 +43,9 @@
23 #include <stdint.h>
24 #include <sys/types.h>
25 #include <sys/user.h>
26 +#if defined(__aarch64__)
27 +#include <asm/ptrace.h>
28 +#endif
30 #include "common/memory.h"
31 #include "google_breakpad/common/minidump_format.h"