Re: [rfc] Shared libraries over the remote protocol, take two

Jim Blandy
2007-06-18T20:10:55Z

Daniel Jacobowitz <drow@false.org> writes:
> +/* Private data for each loaded library. */
> +struct lm_info
> +{
> + /* The library's name. The name is normally kept in the struct
> + so_list; it is only here during XML parsing. */
> + char *name;
> +
> + /* The number of entries in SEGMENT_BASES. */
> + int num_bases;
> +
> + /* The base addresses for each independently relocatable segment of
> + this shared library. */
> + CORE_ADDR *segment_bases;
> +
> + /* The cached offsets for each section of this shared library,
> + determined from SEGMENT_BASES. */
> + struct section_offsets *offsets;
> +};

I'm not too familiar with VECs, but is there some reason not to use a
VEC for segment_bases, as well?