This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Shared libraries over the remote protocol, take two
- From: Jim Blandy <jimb at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>, Pedro Alves <pedro_alves at portugalmail dot pt>
- Date: Mon, 18 Jun 2007 13:10:50 -0700
- Subject: Re: [rfc] Shared libraries over the remote protocol, take two
- References: <20070618150211.GA23415@caradoc.them.org>
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?