diff options
Diffstat (limited to 'meta/recipes-support/libunwind/libunwind/0002-backtrace-Use-only-with-glibc-and-uclibc.patch')
-rw-r--r-- | meta/recipes-support/libunwind/libunwind/0002-backtrace-Use-only-with-glibc-and-uclibc.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/meta/recipes-support/libunwind/libunwind/0002-backtrace-Use-only-with-glibc-and-uclibc.patch b/meta/recipes-support/libunwind/libunwind/0002-backtrace-Use-only-with-glibc-and-uclibc.patch deleted file mode 100644 index 1b862dccb1..0000000000 --- a/meta/recipes-support/libunwind/libunwind/0002-backtrace-Use-only-with-glibc-and-uclibc.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From b61446add7ae1c041266c2fa5ba2f51cb3b65d35 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 31 Dec 2015 06:44:07 +0000 | ||
4 | Subject: [PATCH 2/6] backtrace: Use only with glibc and uclibc | ||
5 | |||
6 | backtrace API is glibc specific not linux specific | ||
7 | so make it behave so. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | tests/test-coredump-unwind.c | 4 +++- | ||
14 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/tests/test-coredump-unwind.c b/tests/test-coredump-unwind.c | ||
17 | index 5349823..3b153cb 100644 | ||
18 | --- a/tests/test-coredump-unwind.c | ||
19 | +++ b/tests/test-coredump-unwind.c | ||
20 | @@ -57,7 +57,9 @@ | ||
21 | #include <grp.h> | ||
22 | |||
23 | /* For SIGSEGV handler code */ | ||
24 | +#ifdef __GLIBC__ | ||
25 | #include <execinfo.h> | ||
26 | +#endif | ||
27 | #include <sys/ucontext.h> | ||
28 | |||
29 | #include <libunwind-coredump.h> | ||
30 | @@ -238,11 +240,11 @@ void handle_sigsegv(int sig, siginfo_t *info, void *ucontext) | ||
31 | ip); | ||
32 | |||
33 | { | ||
34 | +#ifdef __GLIBC__ | ||
35 | /* glibc extension */ | ||
36 | void *array[50]; | ||
37 | int size; | ||
38 | size = backtrace(array, 50); | ||
39 | -#ifdef __linux__ | ||
40 | backtrace_symbols_fd(array, size, 2); | ||
41 | #endif | ||
42 | } | ||
43 | -- | ||
44 | 2.20.1 | ||
45 | |||