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

Pedro Alves
2011-07-01T09:17:16Z

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
}

--
Pedro Alves