From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3621 invoked by alias); 18 Mar 2010 13:38:33 -0000 Received: (qmail 3608 invoked by uid 22791); 18 Mar 2010 13:38:32 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 13:38:26 +0000 Received: (qmail 24892 invoked from network); 18 Mar 2010 13:38:24 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 18 Mar 2010 13:38:24 -0000 Date: Thu, 18 Mar 2010 13:38:00 -0000 From: Daniel Jacobowitz To: Mike Frysinger Cc: gdb-patches@sourceware.org, Jie Zhang Subject: Re: [PATCH 02/16] gdb: tests: add support for testing FLAT toolchains Message-ID: <20100318133817.GA8131@caradoc.them.org> Mail-Followup-To: Mike Frysinger , gdb-patches@sourceware.org, Jie Zhang References: <1268896240-4188-1-git-send-email-vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1268896240-4188-1-git-send-email-vapier@gentoo.org> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00660.txt.bz2 On Thu, Mar 18, 2010 at 03:10:40AM -0400, Mike Frysinger wrote: > From: Jie Zhang > > FLAT toolchains output a FLAT binary for the named output and create > another file with a .gdb suffix that is used for debugging. So when > testing a FLAT toolchain and we need to load up a file, use the .gdb. FWIW, in our board files, we found it simpler to swap the two. So we have a gdb_compile which generates an elf file as foo, and a flat file as foo.flt. Nothing in the GDB testsuite except for the board file itself needs to access the FLT file. That's not the only way to do it, we can accomodate both. But I'm not thrilled with having binfmt_flat references scattered around random tests. In lib/ maybe, but not everywhere that uses gdb_file_cmd... Or in the main definition of gdb_compile? -- Daniel Jacobowitz CodeSourcery