This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: fix PR mi/8138
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Pedro Alves <pedro at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Fri, 4 Feb 2011 11:35:42 -0500
- Subject: Re: RFA: fix PR mi/8138
- References: <m3k4icldkz.fsf@fleche.redhat.com> <201101110007.33006.pedro@codesourcery.com> <m339o3bwp8.fsf@fleche.redhat.com>
On Fri, Feb 04, 2011 at 09:17:55AM -0700, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
>
> >> +^done,sharedlibs=[lib=[from="0x00111360",to="0x00111498",syms-read="2",name="/lib/libexample.so"]]
>
> Pedro> The =library-loaded event was added with the "from" and "to"
> Pedro> fields left out on purpose.
>
> I think it actually makes sense to emit something here, to let the MI
> client distinguish between multiple copies of dlmopen()d libraries.
>
> This may not be the best way to do it, though.
Yeah, I agree with you. From and to are unrealistic; it works on
Linux, although I think we use completely the wrong values for from
and to (.text rather than the whole library). On other targets there
can be multiple distinct ranges. I'd rather have a "base" of some
sort, but I'm not sure that'd work everywhere either - can you get two
copies of the data segment sharing one copy of the text segment on
some platform? Probably.
--
Daniel Jacobowitz
CodeSourcery