X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c41f7443856a7aa4f50ddfd9a60bbf72308929b4..3c05a7cdb90b7f5d0628daa4d430edf1f79e5132:/src/xbt/mmalloc/mm_diff.c diff --git a/src/xbt/mmalloc/mm_diff.c b/src/xbt/mmalloc/mm_diff.c index 7fbe7794a9..c681d8b728 100644 --- a/src/xbt/mmalloc/mm_diff.c +++ b/src/xbt/mmalloc/mm_diff.c @@ -1,6 +1,6 @@ /* mm_diff - Memory snapshooting and comparison */ -/* Copyright (c) 2008-2013. The SimGrid Team. +/* Copyright (c) 2008-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -781,6 +781,9 @@ static int compare_heap_area_with_type(struct s_mm_diff *state, void *real_area1 void *addr_pointed1, *addr_pointed2;; switch(type->type){ + case DW_TAG_unspecified_type: + return 1; + case DW_TAG_base_type: if(type->name!=NULL && strcmp(type->name, "char") == 0){ /* String, hence random (arbitrary ?) size */ if(real_area1 == real_area2) @@ -809,6 +812,9 @@ static int compare_heap_area_with_type(struct s_mm_diff *state, void *real_area1 case DW_TAG_array_type: subtype = xbt_dict_get_or_null(info->types, type->dw_type_id); switch(subtype->type){ + case DW_TAG_unspecified_type: + return 1; + case DW_TAG_base_type: case DW_TAG_enumeration_type: case DW_TAG_pointer_type: