It is a better (but not perfect) identifier for a entry.
if(strcmp(node_type, "DW_AT_name") == 0){
var = xbt_new0(s_dw_variable_t, 1);
+ var->dwarf_offset = 0;
var->name = xbt_strdup(xbt_dynar_get_as(split, xbt_dynar_length(split) - 1, char *));
xbt_dict_set(variables_origin, origin, xbt_strdup(var->name), NULL);
#ifndef WIN32
#include <sys/mman.h>
#endif
+#include <elfutils/libdw.h>
+
#include "mc/mc.h"
#include "mc/datatypes.h"
#include "xbt/fifo.h"
}s_dw_location_entry_t, *dw_location_entry_t;
typedef struct s_dw_variable{
+ Dwarf_Off dwarf_offset; /* Global offset of the field. */
int global;
char *name;
char *type_origin;