This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] c++/11734 revisited


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]