From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15059 invoked by alias); 8 Jul 2010 20:08:36 -0000 Received: (qmail 15046 invoked by uid 22791); 8 Jul 2010 20:08:35 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Jul 2010 20:08:29 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o68K8OZq027061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 8 Jul 2010 16:08:24 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o68K8OrF019282; Thu, 8 Jul 2010 16:08:24 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o68K8NEW006656; Thu, 8 Jul 2010 16:08:23 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 2A8B83784FB; Thu, 8 Jul 2010 14:08:22 -0600 (MDT) From: Tom Tromey To: Kevin Buettner Cc: gdb-patches@sourceware.org Subject: Re: [RFA] remote-sim.c: Add support for multiple sim instances References: <20100702153017.4381070b@mesquite.lan> Date: Thu, 08 Jul 2010 20:08:00 -0000 In-Reply-To: <20100702153017.4381070b@mesquite.lan> (Kevin Buettner's message of "Fri, 2 Jul 2010 15:30:17 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-07/txt/msg00159.txt.bz2 >>>>> "Kevin" == Kevin Buettner writes: Kevin> A very nice side effect of this patch is that it is now possible to Kevin> have more than one runnable simulator instance. Cool. Kevin> It seems to me that, long term, the right way to do it is to create a Kevin> new sim instance for each invocation of "target sim". That, however, Kevin> is not what I did. [...] Kevin> But, back to the "right way" for a moment. It seems to me that, Kevin> ideally, we'd want to be able to have one inferior connected to a Kevin> remote target, another to a simulator, another to a different remote Kevin> target, yet another to a sim using a different architecture variant, Kevin> etc. In order for that to happen, the target vector will need to Kevin> become a per-inferior data structure. Yeah, this has come up a few times now. Somewhere, fairly recently, Pedro mentioned his preferred approach to this. Kevin> Comments? Okay to commit? This isn't an area I am comfortable with, but I didn't want to let your message go un-replied-to. I think the idea of putting globals into a per-sim struct is great. This seems unobjectionable to me. For the rest, I don't really know, though it seems basically reasonable. Tom