Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Support for reading heap state from another process
[simgrid.git] / src / mc / mc_object_info.h
index 57a83a8..cd46859 100644 (file)
@@ -73,6 +73,12 @@ struct s_mc_object_info {
   xbt_dynar_t functions_index;
 };
 
+static inline __attribute__ ((always_inline))
+bool MC_object_info_executable(mc_object_info_t info)
+{
+  return info->flags & MC_OBJECT_INFO_EXECUTABLE;
+}
+
 /** Find the DWARF offset for this ELF object
  *
  *  An offset is applied to address found in DWARF:
@@ -94,6 +100,7 @@ mc_object_info_t MC_find_object_info(memory_map_t maps, const char* name, int ex
 void MC_free_object_info(mc_object_info_t* p);
 
 dw_frame_t MC_file_object_info_find_function(mc_object_info_t info, void *ip);
+dw_variable_t MC_file_object_info_find_variable_by_name(mc_object_info_t info, const char* name);
 
 void MC_post_process_object_info(mc_process_t process, mc_object_info_t info);