From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7327 invoked by alias); 9 Dec 2008 18:12:17 -0000 Received: (qmail 7319 invoked by uid 22791); 9 Dec 2008 18:12:16 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate7.de.ibm.com (HELO mtagate7.de.ibm.com) (195.212.29.156) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Dec 2008 18:11:31 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.13.8/8.13.8) with ESMTP id mB9IBQuD489274 for ; Tue, 9 Dec 2008 18:11:26 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 mB9IBQAF3735582 for ; Tue, 9 Dec 2008 19:11:26 +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 mB9IBQjA032223 for ; Tue, 9 Dec 2008 19:11:26 +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 mB9IBQYV032215; Tue, 9 Dec 2008 19:11:26 +0100 Message-Id: <200812091811.mB9IBQYV032215@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 9 Dec 2008 19:11:26 +0100 Subject: Re: GDB for multiple targets To: marc.khouzam@ericsson.com (Marc Khouzam) Date: Tue, 09 Dec 2008 18:12:00 -0000 From: "Ulrich Weigand" Cc: msnyder@vmware.com (Michael Snyder), gdb@sourceware.org In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA069B9C67@ecamlmw720.eamcs.ericsson.se> from "Marc Khouzam" at Dec 09, 2008 09:41:51 AM 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-12/txt/msg00026.txt.bz2 Marc Khouzam wrote: > 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, Yes, it was certainly the intent that the --enable-targets options should make such a use case possible. > From what has been said, I believe this is possible, as long as > 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? Except for the target architecture (which is already provided as part of the target description) and the osabi, the only remaining feature that falls back to a compile-time default is the target byte order (as far as I can see). Now, the byte order fallback is only used if the endianness cannot be determined from the executable file being debugged, so this should be a rare case. However, it would certainly make sense to allow the target to provide byte order information in the target description as well. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com