From 19ae8582cb401f7b1b6d2f7e3ca00e79ce78e8bb Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Mon, 24 Mar 2014 11:36:55 +0100 Subject: [PATCH] [mc] Remove frame->end field which was not used anymore --- src/mc/mc_dwarf.c | 1 - src/mc/mc_global.c | 22 ---------------------- src/mc/mc_private.h | 1 - 3 files changed, 24 deletions(-) diff --git a/src/mc/mc_dwarf.c b/src/mc/mc_dwarf.c index c5703afbd1..34a511d128 100644 --- a/src/mc/mc_dwarf.c +++ b/src/mc/mc_dwarf.c @@ -799,7 +799,6 @@ static void MC_dwarf_handle_scope_die(mc_object_info_t info, Dwarf_Die* die, Dwa mc_dwarf_location_list_init(&frame->frame_base, info, die, &attr_frame_base); } - frame->end = -1; // This one is now useless: frame->scopes = xbt_dynar_new(sizeof(dw_frame_t), (void_f_pvoid_t) mc_frame_free_voipd); // Register it: diff --git a/src/mc/mc_global.c b/src/mc/mc_global.c index c63ea219cf..fb55f18f3b 100644 --- a/src/mc/mc_global.c +++ b/src/mc/mc_global.c @@ -336,28 +336,6 @@ mc_object_info_t MC_find_object_info(memory_map_t maps, char* name, int executab /*************************************************************************/ -/** \brief Finds a frame (DW_TAG_subprogram) from an DWARF offset in the rangd of this subprogram - * - * The offset can be an offset of a child DW_TAG_variable. - */ -static dw_frame_t MC_dwarf_get_frame_by_offset(xbt_dict_t all_variables, unsigned long int offset){ - - xbt_dict_cursor_t cursor = NULL; - char *name; - dw_frame_t res; - - xbt_dict_foreach(all_variables, cursor, name, res) { - if(offset >= res->start && offset < res->end){ - xbt_dict_cursor_free(&cursor); - return res; - } - } - - xbt_dict_cursor_free(&cursor); - return NULL; - -} - static dw_variable_t MC_dwarf_get_variable_by_name(dw_frame_t frame, char *var){ unsigned int cursor = 0; diff --git a/src/mc/mc_private.h b/src/mc/mc_private.h index d076d785ad..01514bb3ff 100644 --- a/src/mc/mc_private.h +++ b/src/mc/mc_private.h @@ -473,7 +473,6 @@ struct s_dw_frame{ s_mc_location_list_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; /* DWARF offset of the subprogram */ - unsigned long int end; /* Dwarf offset of the next sibling */ xbt_dynar_t /* */ scopes; }; -- 2.20.1