/* Memory ranges
- Copyright (C) 2010-2018 Free Software Foundation, Inc.
+ Copyright (C) 2010-2020 Free Software Foundation, Inc.
This file is part of GDB.
void
normalize_mem_ranges (std::vector<mem_range> *memory)
{
- /* This function must not use any VEC operation on RANGES that
- reallocates the memory block as that invalidates the RANGES
- pointer, which callers expect to remain valid. */
-
if (!memory->empty ())
{
std::vector<mem_range> &m = *memory;