You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/sphinx/files/sphinx-2.0.1_beta-darwin8.p...

23 lines
538 B

Darwin8 has no backtrace functionalities yet
--- src/sphinxutils.cpp
+++ src/sphinxutils.cpp
@@ -1364,6 +1364,9 @@
}
sphSafeInfo ( iFD, "Stack bottom = 0x%p, thread stack size = 0x%x", pMyStack, iStackSize );
+#ifndef SIGRETURN_FRAME_OFFSET
+ sphLogFatal ( "Cannot get stack frame pointer on this architecture" );
+#else
while ( pMyStack && !bSafe )
{
sphSafeInfo ( iFD, "begin of manual backtrace:" );
@@ -1421,6 +1424,7 @@
break;
}
+#endif
#if HAVE_BACKTRACE
sphSafeInfo ( iFD, "begin of system backtrace:" );