Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix warnings
[simgrid.git] / src / mc / mc_private.h
index c992fcd..9d438f7 100644 (file)
@@ -325,12 +325,12 @@ typedef struct s_mc_object_info {
   void* end_plt;
   void* start_got_plt;
   void* end_got_plt;
-  xbt_dict_t local_variables;
-  xbt_dynar_t global_variables;
-  xbt_dict_t types;
+  xbt_dict_t local_variables; // xbt_dict_t<frame_name, dw_frame_t>
+  xbt_dynar_t global_variables; // xbt_dynar_t<dw_variable_t>
+  xbt_dict_t types; // xbt_dict_t<origin as hexadecimal string, dw_type_t>
 } s_mc_object_info_t, *mc_object_info_t;
 
-mc_object_info_t MC_new_object_info();
+mc_object_info_t MC_new_object_info(void);
 mc_object_info_t MC_find_object_info(memory_map_t maps, char* name);
 void MC_free_object_info(mc_object_info_t* p);
 
@@ -416,9 +416,9 @@ typedef struct s_dw_frame{
   void *low_pc;
   void *high_pc;
   dw_location_t frame_base;
-  xbt_dynar_t variables; /* Cannot use dict, there may be several variables with the same name (in different lexical blocks)*/
-  unsigned long int start;
-  unsigned long int end;
+  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 end;   /* Dwarf offset of the next sibling */
 }s_dw_frame_t, *dw_frame_t;
 
 /********************************** Miscellaneous **********************************/