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
Enable timestamping of messages emitted out of any user process (such as the terminai...
[simgrid.git]
/
src
/
xbt
/
module.c
diff --git
a/src/xbt/module.c
b/src/xbt/module.c
index
a79815f
..
69b1db4
100644
(file)
--- a/
src/xbt/module.c
+++ b/
src/xbt/module.c
@@
-9,7
+9,6
@@
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/sysdep.h"
#include "xbt/log.h"
-#include "xbt/error.h"
#include "xbt/dynar.h"
#include "xbt/config.h"
#include "xbt/dynar.h"
#include "xbt/config.h"
@@
-19,6
+18,8
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(module,xbt, "module handling");
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(module,xbt, "module handling");
+char *xbt_binary_name=NULL; /* Mandatory to retrieve neat backtraces */
+
struct xbt_module_ {
xbt_dynar_t *deps;
xbt_cfg_t *cfg;
struct xbt_module_ {
xbt_dynar_t *deps;
xbt_cfg_t *cfg;
@@
-33,7
+34,8
@@
xbt_init(int *argc, char **argv) {
static short int first_run = 1;
if (!first_run)
return;
static short int first_run = 1;
if (!first_run)
return;
-
+
+ xbt_binary_name = strdup(argv[0]);
first_run = 0;
VERB0("Initialize XBT");
first_run = 0;
VERB0("Initialize XBT");