This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/8] Add block range data structure for blocks with non-contiguous address ranges
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: Kevin Buettner <kevinb at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Tue, 31 Jul 2018 21:40:20 -0400
- Subject: Re: [PATCH 1/8] Add block range data structure for blocks with non-contiguous address ranges
- References: <20180625233239.49dc52ea@pinnacle.lan> <20180625234210.1dbf3a9a@pinnacle.lan>
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