X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/16f843b808b321508679187eae65e1fec3cf14ee..e31a46dd2a92c2f4458b6b1016cea15011fcbb91:/src/mc/mc_dwarf_expression.c diff --git a/src/mc/mc_dwarf_expression.c b/src/mc/mc_dwarf_expression.c index c3490916ec..f143a37edc 100644 --- a/src/mc/mc_dwarf_expression.c +++ b/src/mc/mc_dwarf_expression.c @@ -1,3 +1,8 @@ +/* Copyright (c) 2014. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ #include #include @@ -364,10 +369,10 @@ void mc_dwarf_location_list_init(mc_location_list_t list, mc_object_info_t info, list->size++; list->locations = (mc_expression_t) realloc(list->locations, list->size*sizeof(s_mc_expression_t)); mc_expression_t expression = list->locations + i; - - void* base = info->flags & MC_OBJECT_INFO_EXECUTABLE ? 0 : MC_object_base_address(info); + expression->ops = NULL; mc_dwarf_expression_init(expression, len, ops); + void* base = info->flags & MC_OBJECT_INFO_EXECUTABLE ? 0 : MC_object_base_address(info); // If start == 0, this is not a location list: expression->lowpc = start == 0 ? NULL : (char*) base + start; expression->highpc = start == 0 ? NULL : (char*) base + end;