From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32517 invoked by alias); 22 Nov 2008 15:26:00 -0000 Received: (qmail 32447 invoked by uid 22791); 22 Nov 2008 15:26:00 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate3.de.ibm.com (HELO mtagate3.de.ibm.com) (195.212.29.152) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 22 Nov 2008 15:25:15 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.13.8/8.13.8) with ESMTP id mAMFPClm127824 for ; Sat, 22 Nov 2008 15:25:12 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mAMFPBNV3797112 for ; Sat, 22 Nov 2008 16:25:11 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mAMFPBqq024408 for ; Sat, 22 Nov 2008 16:25:11 +0100 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id mAMFPBGe024405; Sat, 22 Nov 2008 16:25:11 +0100 Message-Id: <200811221525.mAMFPBGe024405@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Sat, 22 Nov 2008 16:25:11 +0100 Subject: Re: GDB for multiple targets To: msnyder@vmware.com (Michael Snyder) Date: Sat, 22 Nov 2008 15:26:00 -0000 From: "Ulrich Weigand" Cc: marc.khouzam@ericsson.com (Marc Khouzam), gdb@sourceware.org (gdb@sourceware.org) In-Reply-To: <492706B3.9040907@vmware.com> from "Michael Snyder" at Nov 21, 2008 11:06:27 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00142.txt.bz2 Michael Snyder wrote: > Marc Khouzam wrote: > > 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. 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 ... 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. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com