X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3227570daf9d253c6d0a79f3c20c04e50e33146c..71c9241aa27344f9f8f02f3c1272af4556691713:/src/mc/mc_private.h diff --git a/src/mc/mc_private.h b/src/mc/mc_private.h index 3172c25673..caff24d421 100644 --- a/src/mc/mc_private.h +++ b/src/mc/mc_private.h @@ -189,7 +189,8 @@ typedef struct s_memory_map { memory_map_t get_memory_map(void); void free_memory_map(memory_map_t map); -void get_plt_section(void); +void get_libsimgrid_plt_section(void); +void get_binary_plt_section(void); extern void *start_data_libsimgrid; @@ -214,8 +215,10 @@ extern xbt_fifo_t mc_stack_liveness; extern mc_snapshot_t initial_snapshot_liveness; extern xbt_automaton_t _mc_property_automaton; extern int compare; -extern void *start_plt; -extern void *end_plt; +extern void *start_plt_libsimgrid; +extern void *end_plt_libsimgrid; +extern void *start_plt_binary; +extern void *end_plt_binary; typedef struct s_mc_pair{ mc_snapshot_t system_state; @@ -275,9 +278,11 @@ typedef enum { e_dw_fbregister_op, e_dw_piece, e_dw_arithmetic, + e_dw_plus_uconst, e_dw_compose, e_dw_deref, - e_dw_constant, + e_dw_uconstant, + e_dw_sconstant, e_dw_unsupported } e_dw_location_type; @@ -290,34 +295,40 @@ typedef struct s_dw_location{ int reg; struct{ - int reg; + unsigned int reg; int offset; }breg_op; - unsigned lit; + unsigned int lit; int fbreg_op; int piece; - int deref_size; + unsigned short int deref_size; xbt_dynar_t compose; char *arithmetic; struct{ - int is_signed; int bytes; - int value; - }constant; + long unsigned int value; + }uconstant; + + struct{ + int bytes; + long signed int value; + }sconstant; + + unsigned int plus_uconst; }location; }s_dw_location_t, *dw_location_t; typedef struct s_dw_location_entry{ - void *lowpc; - void *highpc; + long lowpc; + long highpc; dw_location_t location; }s_dw_location_entry_t, *dw_location_entry_t; @@ -328,15 +339,30 @@ typedef struct s_dw_local_variable{ typedef struct s_dw_frame{ char *name; - dw_location_t location; - xbt_dynar_t variables; + void *low_pc; + void *high_pc; + dw_location_t frame_base; + xbt_dict_t variables; + unsigned long int start; + unsigned long int end; }s_dw_frame_t, *dw_frame_t; -/* FIXME : implement free functions for each strcuture */ +/* FIXME : implement free functions for each structure */ -extern xbt_dynar_t mc_binary_local_variables; +extern xbt_dict_t mc_local_variables; -void MC_get_binary_local_variables(void); -void print_local_variables(xbt_dynar_t list); +typedef struct s_variable_value{ + char *type; + + union{ + void *address; + long int res; + }value; +}s_variable_value_t, *variable_value_t; + +void MC_get_local_variables(const char *elf_file, xbt_dict_t location_list, xbt_dict_t *variables); +void print_local_variables(xbt_dict_t list); +char *get_libsimgrid_path(void); +xbt_dict_t MC_get_location_list(const char *elf_file); #endif