This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 02/16] gdb: tests: add support for testing FLAT toolchains
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gdb-patches at sourceware dot org, Jie Zhang <jie dot zhang at analog dot com>
- Date: Thu, 18 Mar 2010 09:38:22 -0400
- Subject: Re: [PATCH 02/16] gdb: tests: add support for testing FLAT toolchains
- References: <1268896240-4188-1-git-send-email-vapier@gentoo.org>
On Thu, Mar 18, 2010 at 03:10:40AM -0400, Mike Frysinger wrote:
> From: Jie Zhang <jie.zhang@analog.com>
>
> 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