Re: [PATCH/RFC] gdb: tests: add support for testing FLAT toolchains

Mike Frysinger
2011-07-01T14:28:52Z

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 <jie@codesourcery.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.
>
> Sounds a lot like the recently added
> lib/gdb.exp:exec_target_file/exec_symbol_file hooks?  We added them
> to solve the exact same problem.  We then have this in our board file
> for uclinux/flat toolchains:
>
>       proc exec_target_file { binfile } {
>           return ${binfile}.flt
>       }

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