Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Rename frame->start into frame->id
[simgrid.git] / src / mc / mc_dwarf.c
index c5703af..ba10eff 100644 (file)
@@ -777,7 +777,7 @@ static void MC_dwarf_handle_scope_die(mc_object_info_t info, Dwarf_Die* die, Dwa
   dw_frame_t frame = xbt_new0(s_dw_frame_t, 1);
 
   frame->tag   = tag;
-  frame->start = dwarf_dieoffset(die);
+  frame->id = dwarf_dieoffset(die);
 
   const char* name = MC_dwarf_attr_integrate_string(die, DW_AT_name);
   if(name)
@@ -799,12 +799,11 @@ static void MC_dwarf_handle_scope_die(mc_object_info_t info, Dwarf_Die* die, Dwa
       mc_dwarf_location_list_init(&frame->frame_base, info, die, &attr_frame_base);
   }
 
-  frame->end = -1; // This one is now useless:
   frame->scopes = xbt_dynar_new(sizeof(dw_frame_t), (void_f_pvoid_t) mc_frame_free_voipd);
 
   // Register it:
   if(klass==mc_tag_subprogram) {
-    char* key = bprintf("%" PRIx64, (uint64_t) frame->start);
+    char* key = bprintf("%" PRIx64, (uint64_t) frame->id);
     xbt_dict_set(info->subprograms,  key, frame, NULL);
     xbt_free(key);
   } else if(klass==mc_tag_scope) {