Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Rename frame->start into frame->id
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 24 Mar 2014 10:38:43 +0000 (11:38 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 24 Mar 2014 10:53:22 +0000 (11:53 +0100)
src/mc/mc_dwarf.c
src/mc/mc_private.h

index 34a511d..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;
   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)
 
   const char* name = MC_dwarf_attr_integrate_string(die, DW_AT_name);
   if(name)
@@ -803,7 +803,7 @@ static void MC_dwarf_handle_scope_die(mc_object_info_t info, Dwarf_Die* die, Dwa
 
   // Register it:
   if(klass==mc_tag_subprogram) {
 
   // 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) {
     xbt_dict_set(info->subprograms,  key, frame, NULL);
     xbt_free(key);
   } else if(klass==mc_tag_scope) {
index 01514bb..3e24dcf 100644 (file)
@@ -472,7 +472,7 @@ struct s_dw_frame{
   void *high_pc;
   s_mc_location_list_t frame_base;
   xbt_dynar_t /* <dw_variable_t> */ variables; /* Cannot use dict, there may be several variables with the same name (in different lexical blocks)*/
   void *high_pc;
   s_mc_location_list_t frame_base;
   xbt_dynar_t /* <dw_variable_t> */ variables; /* Cannot use dict, there may be several variables with the same name (in different lexical blocks)*/
-  unsigned long int start; /* DWARF offset of the subprogram */
+  unsigned long int id; /* DWARF offset of the subprogram */
   xbt_dynar_t /* <dw_frame_t> */ scopes;
 };
 
   xbt_dynar_t /* <dw_frame_t> */ scopes;
 };