Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 12 Apr 2006 14:18:27 +0000 (14:18 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 12 Apr 2006 14:18:27 +0000 (14:18 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2145 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/ex.c

index 6468c9c..c7c2161 100644 (file)
@@ -120,8 +120,7 @@ void xbt_ex_setup_backtrace(xbt_ex_t *e)  {
     line_pos[strlen(line_pos)-1]='\0';
 
     if (strcmp("??",line_func)) {
     line_pos[strlen(line_pos)-1]='\0';
 
     if (strcmp("??",line_func)) {
-      e->bt_strings[i] = bprintf("**   At %s: %s (%s)", 
-                                addrs[i], line_func,line_pos);
+      e->bt_strings[i] = bprintf("**   In %s() at %s (static symbol)", line_func,line_pos);
     } else {
       /* Damn. The symbol is in a dynamic library. Let's get wild */
       char *maps_name;
     } else {
       /* Damn. The symbol is in a dynamic library. Let's get wild */
       char *maps_name;
@@ -206,12 +205,10 @@ void xbt_ex_setup_backtrace(xbt_ex_t *e)  {
 
       /* check whether the trick worked */
       if (strcmp("??",line_func)) {
 
       /* check whether the trick worked */
       if (strcmp("??",line_func)) {
-       e->bt_strings[i] = bprintf("**   At %s: %s (%s)", 
-                                  addrs[i], line_func,line_pos);
+       e->bt_strings[i] = bprintf("**   In %s() in %s (dynamic symbol)", line_func,line_pos);
       } else {
        /* damn, nothing to do here. Let's print the raw address */
       } else {
        /* damn, nothing to do here. Let's print the raw address */
-       e->bt_strings[i] = bprintf("**   At %s: ?? (%s)", 
-                                  addrs[i], backtrace[i]);
+       e->bt_strings[i] = bprintf("**   In ?? (%s)", backtrace[i]);
       }
     }
     free(addrs[i]);
       }
     }
     free(addrs[i]);