From: mquinson Date: Thu, 13 Jul 2006 22:00:45 +0000 (+0000) Subject: Fix on hppa: there is no working backtrace() there X-Git-Tag: v3.3~2796 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3e33945312989c2b5a84a31efafd429185ece096 Fix on hppa: there is no working backtrace() there git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2562 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/ex.c b/src/xbt/ex.c index 9fee97e19b..48ab1de9f1 100644 --- a/src/xbt/ex.c +++ b/src/xbt/ex.c @@ -72,7 +72,11 @@ void xbt_ex_setup_backtrace(xbt_ex_t *e) { /* size (in char) of pointers on this arch */ int addr_len=0; - + + /* Some arches only have stubs of backtrace, no implementation (hppa comes to mind) */ + if (!e->used) + return; + /* build the commandline */ curr += sprintf(curr,"%s -f -e %s ",ADDR2LINE,xbt_binary_name); for (i=0; iused;i++) {