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-1.10_beta-darwin8.patch

24 lines
845 B

Darwin8 has no backtrace functionalities yet
--- src/searchd.cpp
+++ src/searchd.cpp
@@ -1291,6 +1291,10 @@
__asm __volatile__ ( "movq %%rbp,%0":"=r"(pFramePointer):"r"(pFramePointer) );
#endif
+#ifndef SIGRETURN_FRAME_OFFSET
+ sphLogFatal ( "Cannot get stack frame pointer on this architecture" );
+#else
+
if ( !pFramePointer )
{
sphLogFatal ( "Frame pointer is null. Unable to backtrace the stack. Did you build the searchd with -fomit-frame-pointer?" );
@@ -1329,6 +1333,7 @@
if ( !bOk )
sphWarning ( "Something wrong in frame pointers. BackTrace failed (failed FP was %p)", pNewFP );
else
+#endif
#endif // !HAVE_BACKTRACE
sphInfo ( "Stack trace seems to be succesfull. Now you have to resolve the numbers above and attach resolved values to the bugreport. See the section about resolving in the documentation" );