This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: fix PR mi/8138


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]