From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2830 invoked by alias); 9 Dec 2008 18:40:43 -0000 Received: (qmail 2822 invoked by uid 22791); 9 Dec 2008 18:40:42 -0000 X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Dec 2008 18:39:58 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id mB9IhGhe030560; Tue, 9 Dec 2008 12:43:21 -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 12:39:39 -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 18:40:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA069E6C5F@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <200812091811.mB9IBQYV032215@d12av02.megacenter.de.ibm.com> References: <6D19CA8D71C89C43A057926FE0D4ADAA069B9C67@ecamlmw720.eamcs.ericsson.se> from "Marc Khouzam" at Dec 09, 2008 09:41:51 AM <200812091811.mB9IBQYV032215@d12av02.megacenter.de.ibm.com> From: "Marc Khouzam" To: "Ulrich Weigand" Cc: "Michael Snyder" , 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/msg00027.txt.bz2 =20 > 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? thanks Marc