Re: [PATCH 1/8] Add block range data structure for blocks with non-contiguous address ranges

Simon Marchi
2018-08-01T01:40:35Z

On 2018-06-26 02:42 AM, Kevin Buettner wrote:
> @@ -322,4 +401,9 @@ extern int block_find_non_opaque_type_preferred (struct symbol *sym,
> (sym) != NULL; \
> (sym) = block_iter_match_next ((name), &(iter)))
>
> +/* Given a vector of pairs, allocate and build an obstack allocated
> + blockranges struct for a block. */
> +struct blockranges *make_blockranges (struct objfile *objfile,
> + std::vector<std::pair<CORE_ADDR, CORE_ADDR>> &);

Oh, also, this vector could be a vector of struct blockrange. It would be more
expressive than a vector of pairs.

Simon