From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4687 invoked by alias); 9 Dec 2008 18:44:00 -0000 Received: (qmail 4679 invoked by uid 22791); 9 Dec 2008 18:43:59 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Dec 2008 18:43:16 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id mB9IhDjA037428 for ; Tue, 9 Dec 2008 18:43:13 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 mB9IhDvU3137762 for ; Tue, 9 Dec 2008 19:43:13 +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 mB9IhCmR017944 for ; Tue, 9 Dec 2008 19:43:13 +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 mB9IhCa1017939; Tue, 9 Dec 2008 19:43:12 +0100 Message-Id: <200812091843.mB9IhCa1017939@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 9 Dec 2008 19:43:12 +0100 Subject: Re: GDB for multiple targets To: marc.khouzam@ericsson.com (Marc Khouzam) Date: Tue, 09 Dec 2008 18:44:00 -0000 From: "Ulrich Weigand" Cc: msnyder@vmware.com (Michael Snyder), gdb@sourceware.org In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA069E6C5F@ecamlmw720.eamcs.ericsson.se> from "Marc Khouzam" at Dec 09, 2008 01:39:38 PM 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/msg00028.txt.bz2 Marc Khouzam wrote: > > From: Ulrich Weigand [mailto:uweigand@de.ibm.com]=20 > > Sent: Tuesday, December 09, 2008 1:11 PM > > > > 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. > > When using the 'attach' command to debug a process, GDB is able to=20 > find the executable automatically. So, I don't actually use the 'file' > command in those cases. Would GDB still be able to determine the > endianness in those cases? Yes, it would. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com