X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a92d7b716f51a53dea7f59db8524d4add713b910..51c23076e2b42ff07dc167dea1cb0e3a4ab3cf68:/src/mc/ObjectInformation.cpp diff --git a/src/mc/ObjectInformation.cpp b/src/mc/ObjectInformation.cpp index 64fc01e284..b7ac924cfb 100644 --- a/src/mc/ObjectInformation.cpp +++ b/src/mc/ObjectInformation.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015. The SimGrid Team. +/* Copyright (c) 2014-2018. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -17,7 +17,7 @@ namespace mc { /* For an executable object, addresses are virtual address * (there is no offset) i.e. - * \f$\text{virtual address} = \{dwarf address}\f$; + * \f$\text{virtual address} = \{dwarf address}\f$ * * For a shared object, the addreses are offset from the begining * of the shared object (the base address of the mapped shared @@ -106,7 +106,7 @@ void ObjectInformation::remove_global_variable(const char* name) int cmp = current_var.name.compare(name); if (cmp == 0) { - + // Find the whole range: size_type first = cursor; while (first != 0 && this->global_variables[first - 1].name == name) @@ -115,12 +115,12 @@ void ObjectInformation::remove_global_variable(const char* name) size_type last = cursor; while (last != size - 1 && this->global_variables[last + 1].name == name) last++; - + // Remove the whole range: this->global_variables.erase( this->global_variables.begin() + first, this->global_variables.begin() + last + 1); - + return; } else if (cmp < 0) first = cursor + 1;