From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26775 invoked by alias); 1 Jul 2011 14:28:52 -0000 Received: (qmail 26766 invoked by uid 22791); 1 Jul 2011 14:28:51 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gy0-f169.google.com (HELO mail-gy0-f169.google.com) (209.85.160.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Jul 2011 14:28:37 +0000 Received: by gyg13 with SMTP id 13so1662446gyg.0 for ; Fri, 01 Jul 2011 07:28:37 -0700 (PDT) Received: by 10.90.62.22 with SMTP id k22mr3055430aga.95.1309530517103; Fri, 01 Jul 2011 07:28:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.92.18 with HTTP; Fri, 1 Jul 2011 07:28:17 -0700 (PDT) In-Reply-To: <201107011016.57120.pedro@codesourcery.com> References: <201003182126.17119.vapier@gentoo.org> <1309479881-10550-1-git-send-email-vapier@gentoo.org> <201107011016.57120.pedro@codesourcery.com> From: Mike Frysinger Date: Fri, 01 Jul 2011 14:28:00 -0000 Message-ID: Subject: Re: [PATCH/RFC] gdb: tests: add support for testing FLAT toolchains To: Pedro Alves Cc: gdb-patches@sourceware.org, toolchain-devel@blackfin.uclinux.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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: 2011-07/txt/msg00017.txt.bz2 On Fri, Jul 1, 2011 at 05:16, Pedro Alves wrote: > On Friday 01 July 2011 01:24:41, 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. =C2=A0So when >> testing a FLAT toolchain and we need to load up a file, use the .gdb. > > Sounds a lot like the recently added > lib/gdb.exp:exec_target_file/exec_symbol_file hooks? =C2=A0We added them > to solve the exact same problem. =C2=A0We then have this in our board file > for uclinux/flat toolchains: > > =C2=A0 =C2=A0 =C2=A0 proc exec_target_file { binfile } { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return ${binfile}.flt > =C2=A0 =C2=A0 =C2=A0 } probably ... this code does date back years ago, and when i poked things again one year ago, it still needed to be done. i'll take a look at what you refer to now though. -mike