From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14473 invoked by alias); 12 Jul 2012 11:01:48 -0000 Received: (qmail 14465 invoked by uid 22791); 12 Jul 2012 11:01:47 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=BAYES_00,KHOP_THREADED,TW_BJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.allinea.com (HELO mail.allinea.com) (94.125.131.200) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Jul 2012 11:01:24 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.allinea.com (Postfix) with ESMTP id 8B19412FC14 for ; Thu, 12 Jul 2012 12:01:23 +0100 (BST) Received: from mail.allinea.com ([127.0.0.1]) by localhost (mail.allinea.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OuG8N5akUzSl for ; Thu, 12 Jul 2012 12:01:23 +0100 (BST) Received: from [192.168.0.6] (cpc16-sotn11-2-0-cust109.15-1.cable.virginmedia.com [82.10.182.110]) (Authenticated sender: cjanuary) by mail.allinea.com (Postfix) with ESMTPSA id 40ABE12FC13 for ; Thu, 12 Jul 2012 12:01:23 +0100 (BST) Message-ID: <1342090882.2655.0.camel@gumtree> Subject: Re: Multiple inferiors and memory consumption From: Chris January To: gdb@sourceware.org Date: Thu, 12 Jul 2012 11:01:00 -0000 In-Reply-To: <87a9z7h1r2.fsf@fleche.redhat.com> References: <4FFB3F86.2000109@codesourcery.com> <1341907434.2162.5.camel@gumtree> <87a9z7h1r2.fsf@fleche.redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-IsSubscribed: yes 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/msg00034.txt.bz2 On Tue, 2012-07-10 at 13:09 -0600, Tom Tromey wrote: > Chris> We have a patch that allows multiple programs_spaces to share the same > Chris> objfiles by moving the linked list entry into a new struct > Chris> objfile_instance. > > Presumably this only works if the objfile is mapped at the same address > in each inferior. Yes, indeed, so it works well for executables, but less well for shared libraries. Chris