From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1294 invoked by alias); 10 Jul 2012 04:55:51 -0000 Received: (qmail 1285 invoked by uid 22791); 10 Jul 2012 04:55:50 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_BJ X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Jul 2012 04:55:36 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1SoSU2-0003HL-0j from Vladimir_Prus@mentor.com ; Mon, 09 Jul 2012 21:55:34 -0700 Received: from SVR-IES-FEM-02.mgc.mentorg.com ([137.202.0.106]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 9 Jul 2012 21:54:40 -0700 Received: from [172.30.88.164] (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.1.289.1; Tue, 10 Jul 2012 05:55:32 +0100 Message-ID: <4FFBB5C3.3000601@codesourcery.com> Date: Tue, 10 Jul 2012 04:55:00 -0000 From: Vladimir Prus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Tom Tromey CC: Subject: Re: Multiple inferiors and memory consumption References: <4FFB3F86.2000109@codesourcery.com> <87zk78ic2b.fsf@fleche.redhat.com> In-Reply-To: <87zk78ic2b.fsf@fleche.redhat.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00010.txt.bz2 On 10.07.2012 06:29, Tom Tromey wrote: >>>>>> "Volodya" == Vladimir Prus writes: > > Volodya> That is, it does not seem like GDB notices that symbol tables > Volodya> of all 4 loaded executables are identical > > Volodya> Is this something that is going to be improved upon in future? > > I've been working on it off and on. > > You can see my latest attempt, search for > > [0/17] RFC: share minimal symbols across objfiles > > in the Dec 2011 archives. > > There are some follow-up thoughts scattered through the subsequent > months. The problem is reasonably hard -- those 17 patches only address > minsym sharing, but there is at least partial- and full-symbol sharing > to deal with as well; plus some other things making it harder (dlmopen > support, should we want it, makes a mess of it all). I see -- I did not even know about dlmopen until now ;-) > > Volodya> And now for my real question -- is there any case when using > Volodya> multi-process to debug several applications > Volodya> not related via parent-child relationship is better than running N > Volodya> copies of GDB? > > Nothing today. > > In the future they'll share debuginfo when possible, but that may be the > only advantage. > > I've occasionally wondered whether we could have gdb fork when in MI > mode and it follows both parent and child. Interesting approach ;-) Though I'm thinking that single GDB might allow easier implementation of possible cool things like "step through DBus call". Or anything where direct access to two, or several, processes, is needed. Of course, we can do this via IDE, but with remote debugging that might end up awkward/slow. - Volodya -- Vladimir Prus CodeSourcery / Mentor Graphics http://www.mentor.com/embedded-software/