From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27736 invoked by alias); 9 Dec 2008 14:42:40 -0000 Received: (qmail 27727 invoked by uid 22791); 9 Dec 2008 14:42:40 -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.43rc1) with ESMTP; Tue, 09 Dec 2008 14:41:58 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id mB9Efr1t015765; Tue, 9 Dec 2008 08:41:53 -0600 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Tue, 9 Dec 2008 08:41:53 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: GDB for multiple targets Date: Tue, 09 Dec 2008 14:42:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA069B9C67@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <200811221525.mAMFPBGe024405@d12av02.megacenter.de.ibm.com> References: <492706B3.9040907@vmware.com> from "Michael Snyder" at Nov 21, 2008 11:06:27 AM <200811221525.mAMFPBGe024405@d12av02.megacenter.de.ibm.com> From: "Marc Khouzam" To: "Ulrich Weigand" , "Michael Snyder" Cc: 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-12/txt/msg00023.txt.bz2 =20 > From: Ulrich Weigand [mailto:uweigand@de.ibm.com]=20 > Sent: Saturday, November 22, 2008 10:25 AM > > Michael Snyder wrote: > > Marc Khouzam wrote: > > > From what I understand, to debug a Dicos target, I need 'set osabi > > > DICOS' > > >=20=20 > > > I'm trying to find out how difficult it would be (if at=20 > all possible), > > > for GDB to, instead, automatically > > > detect the target after a 'target remote' command. > > >=20=20 > > > The reason for this is to have the DSF-GDB frontend=20 > simply be able to > > > connect to a target, without > > > requiring the user to specify which type. > > >=20=20 > > > Is it possible? > >=20 > > We could set up a query as part of the initial "target remote"=20 > > handshake. It would be nice to have a standard agreed-upon before > > implementation. >=20 > Hmm, GDB already detects the target automatically, using the > "target description" mechanism. However, this currently sets > only the architecture, not the osabi, and in the particular > case described above, both host and target *architectures* are > the same, but just the osabi differs ... >=20 > I think it would make sense to have the target description > provide the proper osabi setting as well (maybe using the > existing "properties" mechanism), and have GDB default to > the osabi in the target description. Thanks Ulrich and sorry for the late reply. What we are hoping for is to use the same GDB binary on a host to debug many different targets such as: x86 Linux and non-linux powerPC linux and non-linux powerPC Linux and x86 non-linux ... Emulator e.g. QEMU, Simics,=20 =46rom what has been said, I believe this is possible, as long as=20 the user specifies the osabi using the 'set oasbi' command. If the osabi was automatically set by GDB, as you suggest above, is there anything else to worry about to allow the same GDB binary to be able to automatically be ready to debug the many different targets above? Thanks again Marc