[RFA] c++/11734 revisited

Jan Kratochvil jan.kratochvil@redhat.com
Thu Dec 9 21:52:00 GMT 2010


On Thu, 09 Dec 2010 22:44:55 +0100, Tom Tromey wrote:
> Keith> +if  {[gdb_compile $srcfiles $binfile executable {debug c++}] != "" } {
> Keith> +     untested pr11734.exp
> Keith> +     return -1
> Keith> +}
> 
> Keith> +if {[get_compiler_info $binfile "c++"]} {
> Keith> +    return -1
> Keith> +}
> Keith> +
> Keith> +gdb_exit
> Keith> +gdb_start
> Keith> +gdb_reinitialize_dir $srcdir/$subdir
> Keith> +gdb_load $binfile
> 
> I don't know if you can use prepare_for_testing here, but
> if not you can at least use clean_restart.

If the reason was get_compiler_info it does not use $binfile anyway.
(And a lot of gdb testsuite code expects so.)


Thanks,
Jan



More information about the Gdb-patches mailing list