mirror of
https://github.com/paboyle/Grid.git
synced 2025-11-19 05:59:31 +00:00
Compare commits
2 Commits
23581333e6
...
hotfix/unw
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e40e22004 | |||
|
|
6165931afa |
@@ -42,6 +42,7 @@ void GridAbort(void);
|
|||||||
#define ASSLOG(A) ::write(STDERR_FILENO,A,::strlen(A));
|
#define ASSLOG(A) ::write(STDERR_FILENO,A,::strlen(A));
|
||||||
#ifdef HAVE_EXECINFO_H
|
#ifdef HAVE_EXECINFO_H
|
||||||
#define GRID_ASSERT(b) if(!(b)) { \
|
#define GRID_ASSERT(b) if(!(b)) { \
|
||||||
|
fflush(stdout); \
|
||||||
ASSLOG(" GRID_ASSERT failure: "); \
|
ASSLOG(" GRID_ASSERT failure: "); \
|
||||||
ASSLOG(__FILE__); \
|
ASSLOG(__FILE__); \
|
||||||
ASSLOG(" : "); \
|
ASSLOG(" : "); \
|
||||||
|
|||||||
@@ -755,7 +755,7 @@ void Grid_generic_handler(int sig,siginfo_t *si,void * ptr)
|
|||||||
sig_print_uint(si->si_code);
|
sig_print_uint(si->si_code);
|
||||||
SIGLOG("\n");
|
SIGLOG("\n");
|
||||||
|
|
||||||
ucontext_t *uc= (ucontext_t *)ptr;
|
unw_context_t *uc= (unw_context_t *)ptr;
|
||||||
|
|
||||||
SIGLOG("Backtrace:\n");
|
SIGLOG("Backtrace:\n");
|
||||||
#ifdef HAVE_UNWIND
|
#ifdef HAVE_UNWIND
|
||||||
|
|||||||
14
configure.ac
14
configure.ac
@@ -409,10 +409,16 @@ AC_SEARCH_LIBS([unw_backtrace], [unwind],
|
|||||||
[have_unwind=true],
|
[have_unwind=true],
|
||||||
[AC_MSG_WARN(libunwind library was not found in your system.)])
|
[AC_MSG_WARN(libunwind library was not found in your system.)])
|
||||||
|
|
||||||
AC_SEARCH_LIBS([_Ux86_64_step], [unwind-x86_64],
|
AS_CASE([$host_cpu], [x86_64],
|
||||||
[AC_DEFINE([HAVE_UNWIND_X86_64], [1], [Define to 1 if you have the `libunwind-x86_64' library])]
|
[AC_SEARCH_LIBS([_Ux86_64_step], [unwind-x86_64],
|
||||||
[have_unwind_x86_64=true],
|
[AC_DEFINE([HAVE_UNWIND_X86_64], [1], [Define to 1 if you have the `libunwind-x86_64' library])]
|
||||||
[AC_MSG_WARN(libunwind library was not found in your system.)])
|
[have_unwind_x86_64=true],
|
||||||
|
[AC_MSG_WARN(libunwind library was not found in your system.)])],
|
||||||
|
[aarch64],
|
||||||
|
[AC_SEARCH_LIBS([_Uaarch64_step], [unwind-aarch64],
|
||||||
|
[AC_DEFINE([HAVE_UNWIND_AARCH64], [1], [Define to 1 if you have the `libunwind-aarch64' library])]
|
||||||
|
[have_unwind_aarch64=true],
|
||||||
|
[AC_MSG_WARN(libunwind library was not found in your system.)])])
|
||||||
|
|
||||||
AC_SEARCH_LIBS([SHA256_Init], [crypto],
|
AC_SEARCH_LIBS([SHA256_Init], [crypto],
|
||||||
[AC_DEFINE([HAVE_CRYPTO], [1], [Define to 1 if you have the `OpenSSL' library])]
|
[AC_DEFINE([HAVE_CRYPTO], [1], [Define to 1 if you have the `OpenSSL' library])]
|
||||||
|
|||||||
Reference in New Issue
Block a user