patches/dangerdeep-02-backtrace.diff
author daymobrew
Sun, 18 Nov 2007 13:33:43 +0000
changeset 655 96e0b8033691
parent 249 06a4361cf835
permissions -rw-r--r--
2007-11-18 Damien Carbery <[email protected]> * SFEdillo.spec: Remove SUNWGtku (gtk 1.x) dependency to get module to build. * SFEabiword.spec: Enable building with either SUNWaspell or SFEaspell. Also add support for building on Indiana systems. * SFErdesktop.spec: Remove SUNWopenssl-commands dependency to get module to build. * SFEtracker.spec: Add support for building on Indiana systems. * SFEircii.spec: Fix %files. * SFEgnome-power-manager.spec: Fix %files. * SFElibgsf.spec: Add support for building on Indiana systems. * SFEhpoj.spec: Change LDFLAGS to work for gcc. * SFEgnome-gvfs.spec: Add support for building on Indiana systems. Add changes for gvfs 0.0.2. * SFEcoreutils.spec: Add BuildConflicts SUNWgnu-coreutils, a package that is available on Indiana systems. * SFElibatomic-ops.spec: Change LDFLAGS to work for gcc. * SFEkmflcomp.spec: Add support for building on Indiana systems. * SFEscim-tables.spec: Enable building with either SUNWgnu-gettext or SFEgettext. * SFElibiconv.spec: Add l10n package. * SFEliberea.spec: Add support for building on Indiana systems. * SFEscim-hangul.spec: Enable building with either SUNWgnu-gettext or SFEgettext. * SFEscim.spec: Add support for building on Indiana systems. * SFEspeex.spec: Add BuildConflicts SUNWspeex. * SFEgkrellm.spec: Enable building with either SUNWgnu-gettext or SFEgettext. * SFEdangerdeep.spec: Add support for building on Indiana systems. * SFEscim-anthy.spec: Enable building with either SUNWgnu-gettext or SFEgettext. * include/Solaris.inc: Copy from spec-files repository, to include Indiana support. * patches/dangerdeep-02-backtrace.diff: Rework.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
249
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     1
diff -ur dangerdeep-0.2.0-orig/src/faulthandler.h dangerdeep-0.2.0/src/faulthandler.h
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     2
--- dangerdeep-0.2.0-orig/src/faulthandler.h	2006-10-13 01:16:09.000000000 +0700
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     3
+++ dangerdeep-0.2.0/src/faulthandler.h	2007-04-23 13:18:28.911356853 +0700
655
96e0b8033691 2007-11-18 Damien Carbery <[email protected]>
daymobrew
parents: 249
diff changeset
     4
@@ -43,7 +43,11 @@
249
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     5
 
655
96e0b8033691 2007-11-18 Damien Carbery <[email protected]>
daymobrew
parents: 249
diff changeset
     6
 #else	//non-WIN32-MacOSX
249
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     7
 
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     8
+// backtrace support is yet to be added to Open Solaris
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     9
+// *** FIXME *** need to check for support in SConstruct
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    10
+#if !defined(sun)
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    11
 #include <execinfo.h>
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    12
+#endif
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    13
 #include <stdio.h>
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    14
 #include <stdlib.h>
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    15
 #include <cxxabi.h>      // Needed for __cxa_demangle
655
96e0b8033691 2007-11-18 Damien Carbery <[email protected]>
daymobrew
parents: 249
diff changeset
    16
@@ -57,6 +61,7 @@
249
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    17
 
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    18
 inline void print_stack_trace()
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    19
 {
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    20
+#if !defined(sun)
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    21
 	void *array[16];
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    22
 	int size = backtrace(array, 16);
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    23
 	if (size < 0) {
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    24
@@ -105,6 +110,7 @@
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    25
 			fprintf(stderr, "%s\n", it->c_str());
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    26
 		}
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    27
 	}
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    28
+#endif
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    29
 }
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    30
 
06a4361cf835 2007-04-23 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    31
 void sigsegv_handler(int )