From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5520 invoked by alias); 4 Feb 2011 16:35:54 -0000 Received: (qmail 5338 invoked by uid 22791); 4 Feb 2011 16:35:53 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Feb 2011 16:35:46 +0000 Received: (qmail 8307 invoked from network); 4 Feb 2011 16:35:45 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Feb 2011 16:35:45 -0000 Date: Fri, 04 Feb 2011 16:35:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: RFA: fix PR mi/8138 Message-ID: <20110204163542.GB23626@caradoc.them.org> Mail-Followup-To: Tom Tromey , Pedro Alves , gdb-patches@sourceware.org References: <201101110007.33006.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00073.txt.bz2 On Fri, Feb 04, 2011 at 09:17:55AM -0700, Tom Tromey wrote: > >>>>> "Pedro" == Pedro Alves 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