#1186 Bugfix: compile if not glibc

None
open
nobody
None
1
2017-01-10
2016-12-25
Anonymous
No

Hello. I found this bug (https://sourceforge.net/p/texstudio/bugs/1980/) and i can tell that it can be solved:

TexStudio's backtrace functionality is so far limitid to glibc, so all other should set NO_CRASH_HANDLER for themselves.

Here is the patch i used.

--- debughelper.cpp 2016-11-25 13:37:11.403938371 +0100
+++ debughelper.cpp 2016-11-25 18:42:49.939675125 +0100
@@ -3,6 +3,9 @@
 #include "smallUsefulFunctions.h"
 #include <stdio.h>
 #include <stdlib.h>
+#ifndef __GLIBC__
+#define NO_CRASH_HANDLER
+#endif
 #ifndef NO_CRASH_HANDLER
 #if (defined(x86_64) || defined(__x86_64__))
 #define CPU_IS_X86_64

Related

Bugs: #1980

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2017-01-07

    Thanks. Implemented: hg 6360 (58ba4923326d)

     
  • Tim Hoffmann

    Tim Hoffmann - 2017-01-07
    • status: open --> closed
    • Group: -->
     
  • Tim Hoffmann

    Tim Hoffmann - 2017-01-10
    • status: closed --> open
     
  • Tim Hoffmann

    Tim Hoffmann - 2017-01-10

    Does not work for Linux (gcc). __GLIBC__ not necessarily defined according to Jan.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks