2 Commits

2 changed files with 42 additions and 1 deletions
Split View
  1. +1
    -1
      develop/libucontext/libucontext.desc
  2. +41
    -0
      develop/libunwind/fix-test-coredump-unwind.patch

+ 1
- 1
develop/libucontext/libucontext.desc

@ -28,6 +28,6 @@
[L] ISCL
[S] Stable
[V] 0.11
[P] X -----5---9 100.000
[P] X -----5---9 098.000
[D] 517060484 libucontext-0.11.tar.xz https://distfiles.dereferenced.org/libucontext/

+ 41
- 0
develop/libunwind/fix-test-coredump-unwind.patch

@ -0,0 +1,41 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../libunwind/fix-test-coredump-unwind.patch
# Copyright (C) 2020 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- a/tests/test-coredump-unwind.c
+++ b/tests/test-coredump-unwind.c
@@ -57,7 +57,11 @@
#include <grp.h>
/* For SIGSEGV handler code */
-#include <execinfo.h>
+#if HAVE_EXECINFO_H
+# include <execinfo.h>
+#else
+ extern int backtrace (void **, int);
+#endif
#include <sys/ucontext.h>
#include <libunwind-coredump.h>
@@ -242,7 +246,7 @@
void *array[50];
int size;
size = backtrace(array, 50);
-#ifdef __linux__
+#if defined __linux__ && HAVE_EXECINFO_H
backtrace_symbols_fd(array, size, 2);
#endif
}

Loading…
Cancel
Save