From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29699 invoked by alias); 21 Nov 2008 19:07:16 -0000 Received: (qmail 29675 invoked by uid 22791); 21 Nov 2008 19:07:15 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Nov 2008 19:06:38 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 23BEC47005; Fri, 21 Nov 2008 11:06:37 -0800 (PST) Received: from [10.20.92.151] (promb-2s-dhcp151.eng.vmware.com [10.20.92.151]) by mailhost3.vmware.com (Postfix) with ESMTP id 139EBC9A8A; Fri, 21 Nov 2008 11:06:37 -0800 (PST) Message-ID: <492706B3.9040907@vmware.com> Date: Fri, 21 Nov 2008 19:07:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: Marc Khouzam CC: "gdb@sourceware.org" Subject: Re: GDB for multiple targets References: <6D19CA8D71C89C43A057926FE0D4ADAA0685ADD9@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA0685ADD9@ecamlmw720.eamcs.ericsson.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2008-11/txt/msg00136.txt.bz2 Marc Khouzam wrote: > Hi, > > I would like to have one GDB binary on Linux to debug different targets: > Linux and Dicos. > I built GDB with --enable-targets=i686-ericsson-dicos so I get Linux by > default, and Dicos as a possibility. > > From what I understand, to debug a Dicos target, I need 'set osabi > DICOS' > > I'm trying to find out how difficult it would be (if at all possible), > for GDB to, instead, automatically > detect the target after a 'target remote' command. > > The reason for this is to have the DSF-GDB frontend simply be able to > connect to a target, without > requiring the user to specify which type. > > Is it possible? We could set up a query as part of the initial "target remote" handshake. It would be nice to have a standard agreed-upon before implementation.