From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7841 invoked by alias); 21 Nov 2008 17:09:05 -0000 Received: (qmail 7813 invoked by uid 22791); 21 Nov 2008 17:09:04 -0000 X-Spam-Check-By: sourceware.org Received: from imr2.ericy.com (HELO imr2.ericy.com) (198.24.6.3) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Nov 2008 17:08:22 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id mALH8JwA009116 for ; Fri, 21 Nov 2008 11:08:19 -0600 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 21 Nov 2008 10:59:34 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: GDB for multiple targets Date: Fri, 21 Nov 2008 17:09:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA0685ADD9@ecamlmw720.eamcs.ericsson.se> From: "Marc Khouzam" To: 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/msg00132.txt.bz2 Hi, =20 I would like to have one GDB binary on Linux to debug different targets: Linux and Dicos. I built GDB with --enable-targets=3Di686-ericsson-dicos so I get Linux by default, and Dicos as a possibility. =20 =46rom what I understand, to debug a Dicos target, I need 'set osabi DICOS' =20 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. =20 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. =20 Is it possible? =20 Thanks =20 Marc =20