A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Doxygen documentation for mallocators
[simgrid.git]
/
src
/
xbt
/
ex.c
diff --git
a/src/xbt/ex.c
b/src/xbt/ex.c
index
9fee97e
..
48ab1de
100644
(file)
--- 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;
/* 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; i<e->used;i++) {
/* build the commandline */
curr += sprintf(curr,"%s -f -e %s ",ADDR2LINE,xbt_binary_name);
for (i=0; i<e->used;i++) {