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: Daniel Jacobowitz <drow at false dot org>
- To: Jim Blandy <jimb at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org, Ulrich Weigand <uweigand at de dot ibm dot com>, Pedro Alves <pedro_alves at portugalmail dot pt>
- Date: Mon, 18 Jun 2007 15:38:54 -0400
- Subject: Re: [rfc] Shared libraries over the remote protocol, take two
- References: <20070618150211.GA23415@caradoc.them.org> <m3lkehqcsx.fsf@codesourcery.com>
On Mon, Jun 18, 2007 at 12:31:58PM -0700, Jim Blandy wrote:
> With the following DTD:
>
> <!-- library-list: Root element with versioning -->
> <!ELEMENT library-list (library)*>
> <!ATTLIST library-list version CDATA #FIXED "1.0">
> <!ELEMENT library (segment)*>
> <!ATTLIST library name CDATA #REQUIRED>
> <!ELEMENT segment EMPTY>
> <!ATTLIST segment address CDATA #REQUIRED>
>
> there's no way to have several segments at different offsets, because
> segments aren't allowed to have names. Shouldn't segments have a name
> attribute?
I don't think we need to name them to do that. If we did, we'd have
to define meanings for the names, and so forth...
<library-list>
<library name="libc.so.1">
<segment address="0x4000"/>
<segment address="0x10000"/>
</library>
</library-list>
The first one will be the first PT_LOAD from the ELF file, et cetera.
--
Daniel Jacobowitz
CodeSourcery